HEX to HSL: #93C5FD
Also known as: Tailwind v3 blue-300
Result
#93C5FD → hsl(212 96% 78%)
Values are shown at full precision, so converting back gives exactly #93c5fd. The rounded form is what you normally paste into CSS.
Step-by-step math
Every number below is computed from the input, nothing is looked up.
1. RGB ÷ 255
R = 0.5765 G = 0.7725 B = 0.9922
2. max, min, Δ
max = 0.9922 min = 0.5765 Δ = max − min = 0.4157
3. L
L = (max + min) / 2 = 0.7843 = 78.43%
4. S
S = Δ / (1 − |2L − 1|) = 0.9636 = 96.36%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.5765 − 0.7725) / 0.4157 + 4) = 211.70°
6. HSL
hsl(211.70 96.36% 78.43%)
All formats
- HEX
- #93c5fd
- RGB
- rgb(147 197 253)
- RGB (legacy)
- rgb(147, 197, 253)
- HSL
- hsl(211.70 96.36% 78.43%) → hsl(212 96% 78%)
- HWB
- hwb(212 58% 1%)
- OKLCH
- oklch(0.809 0.096 251.8) · oklch(80.9% 0.096 251.8)
- OKLab
- oklab(0.809 -0.030 -0.091)
- Lab (D50)
- lab(77.56 -6.25 -33.25)
- LCH (D50)
- lch(77.56 33.84 259.35)
- Display P3
- color(display-p3 0.6173 0.7671 0.9730)
- Linear sRGB
- color(srgb-linear 0.2918 0.5583 0.9823)
Gamut: sRGB and Display P3
#93C5FD is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.099 and Display P3 reaches 0.108; this color uses 97% of the sRGB chroma available.
CSS snippets
.element {
color: #93c5fd;
color: rgb(147 197 253);
color: hsl(212 96% 78%);
color: oklch(0.809 0.096 251.8);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.809 0.096 251.8);
}
/* arbitrary values */
class="text-[#93c5fd] bg-[oklch(0.809_0.096_251.8)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.6173 0.7671 0.9730); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #93c5fd calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- blue-300#8EC5FF
- lightskyblue#87CEFA
- v3 sky-300#7DD3FC
- skyblue#87CEEB
- sky-300#74D4FF
- v3 indigo-300#A5B4FC
- indigo-300#A3B3FF
- lightsteelblue#B0C4DE
Lighter and darker, same hue and chroma
- #A6D9FF · oklch(0.869 0.096 251.8) · ΔL +0.06
- #80B2E9 · oklch(0.749 0.096 251.8) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?