OKLCH to HEX: #8EC5FF
Also known as: Tailwind blue-300
Result
oklch(0.80711 0.10065 250.446) → #8EC5FF
Values are shown at full precision, so converting back gives exactly #8ec5ff. 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. input
oklch(0.80711 0.10065 250.446)
2. OKLCH → Oklab
a = C·cos H = -0.03369 b = C·sin H = -0.09485
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.773291 m′ = L − 0.1056·a − 0.0639·b = 0.816722 s′ = L − 0.0895·a − 1.2915·b = 0.932616
4. cube
l = 0.773291³ = 0.462411 m = 0.816722³ = 0.544783 s = 0.932616³ = 0.811163
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.270501 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.558345 B = −0.0042·l − 0.7034·m + 1.7076·s = 1.000003
6. linear → sRGB, × 255
R = 0.55687 × 255 = 142.00 → 142 G = 0.77255 × 255 = 197.00 → 197 B = 1.00000 × 255 = 255.00 → 255
7. RGB → HEX
#8EC5FF
All formats
- HEX
- #8ec5ff
- RGB
- rgb(142 197 255)
- RGB (legacy)
- rgb(142, 197, 255)
- HSL
- hsl(210.80 100.00% 77.84%) → hsl(211 100% 78%)
- HWB
- hwb(211 56% 0%)
- OKLCH
- oklch(0.807 0.101 250.4) · oklch(80.7% 0.101 250.4)
- OKLab
- oklab(0.807 -0.034 -0.095)
- Lab (D50)
- lab(77.34 -7.17 -34.68)
- LCH (D50)
- lch(77.34 35.41 258.32)
- Display P3
- color(display-p3 0.6026 0.7666 0.9802)
- Linear sRGB
- color(srgb-linear 0.2705 0.5583 1.0000)
Gamut: sRGB and Display P3
#8EC5FF is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.101 and Display P3 reaches 0.110; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #8ec5ff;
color: rgb(142 197 255);
color: hsl(211 100% 78%);
color: oklch(0.807 0.101 250.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.807 0.101 250.4);
}
/* arbitrary values */
class="text-[#8ec5ff] bg-[oklch(0.807_0.101_250.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.6026 0.7666 0.9802); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #8ec5ff calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 blue-300#93C5FD
- 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
- #A1D9FF · oklch(0.867 0.101 250.4) · ΔL +0.06
- #7BB2EB · oklch(0.747 0.101 250.4) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?