HEX to HSL: #87CEFA
Also known as: CSS lightskyblue
Result
#87CEFA → hsl(203 92% 75%)
Values are shown at full precision, so converting back gives exactly #87cefa. 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.5294 G = 0.8078 B = 0.9804
2. max, min, Δ
max = 0.9804 min = 0.5294 Δ = max − min = 0.4510
3. L
L = (max + min) / 2 = 0.7549 = 75.49%
4. S
S = Δ / (1 − |2L − 1|) = 0.9200 = 92.00%
5. H
max is B → H = 60° × ((R − G) / Δ + 4) = 60° × ((0.5294 − 0.8078) / 0.4510 + 4) = 202.96°
6. HSL
hsl(202.96 92.00% 75.49%)
All formats
- HEX
- #87cefa
- RGB
- rgb(135 206 250)
- RGB (legacy)
- rgb(135, 206, 250)
- HSL
- hsl(202.96 92.00% 75.49%) → hsl(203 92% 75%)
- HWB
- hwb(203 53% 2%)
- OKLCH
- oklch(0.821 0.095 236.8) · oklch(82.1% 0.095 236.8)
- OKLab
- oklab(0.821 -0.052 -0.079)
- Lab (D50)
- lab(79.29 -14.43 -29.10)
- LCH (D50)
- lch(79.29 32.48 243.62)
- Display P3
- color(display-p3 0.5916 0.8006 0.9636)
- Linear sRGB
- color(srgb-linear 0.2423 0.6172 0.9560)
Gamut: sRGB and Display P3
#87CEFA is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.104 and Display P3 reaches 0.113; this color uses 91% of the sRGB chroma available.
CSS snippets
.element {
color: #87cefa;
color: rgb(135 206 250);
color: hsl(203 92% 75%);
color: oklch(0.821 0.095 236.8);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.821 0.095 236.8);
}
/* arbitrary values */
class="text-[#87cefa] bg-[oklch(0.821_0.095_236.8)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.5916 0.8006 0.9636); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #87cefa calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 sky-300#7DD3FC
- sky-300#74D4FF
- skyblue#87CEEB
- v3 blue-300#93C5FD
- blue-300#8EC5FF
- lightsteelblue#B0C4DE
- lightblue#ADD8E6
- v3 cyan-400#22D3EE
Lighter and darker, same hue and chroma
- #9AE2FF · oklch(0.881 0.095 236.8) · ΔL +0.06
- #74BBE6 · oklch(0.761 0.095 236.8) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?