HEX to OKLCH: #F0FDF4
Also known as: Tailwind green-50, Tailwind v3 green-50
Result
#F0FDF4 → oklch(0.982 0.018 155.8)
Values are shown at full precision, so converting back gives exactly #f0fdf4. 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: 240/255 = 0.94118 → 0.871367 (((x + 0.055) / 1.055)^2.4) G: 253/255 = 0.99216 → 0.982251 (((x + 0.055) / 1.055)^2.4) B: 244/255 = 0.95686 → 0.904661 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.932550 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.950421 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.923580
3. cube root
l′ = ∛0.932550 = 0.976991 m′ = ∛0.950421 = 0.983193 s′ = ∛0.923580 = 0.973849
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.98193 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.01648 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.00740
5. Oklab → OKLCH
C = √(a² + b²) = 0.01806 H = atan2(b, a) = 155.826° L = 0.98193
6. OKLCH
oklch(0.98193 0.01806 155.826) rounded: oklch(0.982 0.018 155.8)
All formats
- HEX
- #f0fdf4
- RGB
- rgb(240 253 244)
- RGB (legacy)
- rgb(240, 253, 244)
- HSL
- hsl(138.46 76.47% 96.67%) → hsl(138 76% 97%)
- HWB
- hwb(138 94% 1%)
- OKLCH
- oklch(0.982 0.018 155.8) · oklch(98.2% 0.018 155.8)
- OKLab
- oklab(0.982 -0.016 0.007)
- Lab (D50)
- lab(98.15 -5.62 2.77)
- LCH (D50)
- lch(98.15 6.26 153.78)
- Display P3
- color(display-p3 0.9505 0.9905 0.9592)
- Linear sRGB
- color(srgb-linear 0.8714 0.9823 0.9047)
Gamut: sRGB and Display P3
#F0FDF4 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.027 and Display P3 reaches 0.030; this color uses 67% of the sRGB chroma available.
CSS snippets
.element {
color: #f0fdf4;
color: rgb(240 253 244);
color: hsl(138 76% 97%);
color: oklch(0.982 0.018 155.8);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.982 0.018 155.8);
}
/* arbitrary values */
class="text-[#f0fdf4] bg-[oklch(0.982_0.018_155.8)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9505 0.9905 0.9592); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #f0fdf4 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- emerald-50#ECFDF5
- teal-50#F0FDFA
- honeydew#F0FFF0
- mintcream#F5FFFA
- azure#F0FFFF
- cyan-50#ECFEFF
- mist-50#F9FBFB
- olive-50#FBFBF9
Lighter and darker, same hue and chroma
- #F6FFFA · oklch(1.000 0.018 155.8) · ΔL +0.06
- #DCE9E0 · oklch(0.922 0.018 155.8) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?