HEX to OKLCH: #ECFDF5
Also known as: Tailwind emerald-50, Tailwind v3 emerald-50
Result
#ECFDF5 → oklch(0.979 0.021 166.1)
Values are shown at full precision, so converting back gives exactly #ecfdf5. 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. sRGB → linear
R: 236/255 = 0.92549 → 0.838799 (((x + 0.055) / 1.055)^2.4) G: 253/255 = 0.99216 → 0.982251 (((x + 0.055) / 1.055)^2.4) B: 245/255 = 0.96078 → 0.913099 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.919559 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.944426 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.926019
3. cube root
l′ = ∛0.919559 = 0.972433 m′ = ∛0.944426 = 0.981121 s′ = ∛0.926019 = 0.974705
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.97932 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.02008 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.00496
5. Oklab → OKLCH
C = √(a² + b²) = 0.02068 H = atan2(b, a) = 166.113° L = 0.97932
6. OKLCH
oklch(0.97932 0.02068 166.113) rounded: oklch(0.979 0.021 166.1)
All formats
- HEX
- #ecfdf5
- RGB
- rgb(236 253 245)
- RGB (legacy)
- rgb(236, 253, 245)
- HSL
- hsl(151.76 80.95% 95.88%) → hsl(152 81% 96%)
- HWB
- hwb(152 93% 1%)
- OKLCH
- oklch(0.979 0.021 166.1) · oklch(97.9% 0.021 166.1)
- OKLab
- oklab(0.979 -0.020 0.005)
- Lab (D50)
- lab(97.88 -6.84 1.83)
- LCH (D50)
- lch(97.88 7.08 165.06)
- Display P3
- color(display-p3 0.9378 0.9900 0.9625)
- Linear sRGB
- color(srgb-linear 0.8388 0.9823 0.9131)
Gamut: sRGB and Display P3
#ECFDF5 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.029 and Display P3 reaches 0.033; this color uses 71% of the sRGB chroma available.
CSS snippets
.element {
color: #ecfdf5;
color: rgb(236 253 245);
color: hsl(152 81% 96%);
color: oklch(0.979 0.021 166.1);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.979 0.021 166.1);
}
/* arbitrary values */
class="text-[#ecfdf5] bg-[oklch(0.979_0.021_166.1)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9378 0.9900 0.9625); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #ecfdf5 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- green-50#F0FDF4
- teal-50#F0FDFA
- honeydew#F0FFF0
- cyan-50#ECFEFF
- azure#F0FFFF
- mintcream#F5FFFA
- lightcyan#E0FFFF
- mist-50#F9FBFB
Lighter and darker, same hue and chroma
- #F3FFFC · oklch(1.000 0.021 166.1) · ΔL +0.06
- #D8E9E1 · oklch(0.919 0.021 166.1) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?