HEX to OKLCH: #F0FDFA
Also known as: Tailwind teal-50, Tailwind v3 teal-50
Result
#F0FDFA → oklch(0.984 0.014 180.7)
Values are shown at full precision, so converting back gives exactly #f0fdfa. 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: 250/255 = 0.98039 → 0.955973 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.935190 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.955932 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.955905
3. cube root
l′ = ∛0.935190 = 0.977912 m′ = ∛0.955932 = 0.985089 s′ = ∛0.955905 = 0.985080
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.98358 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.01420 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.00018
5. Oklab → OKLCH
C = √(a² + b²) = 0.01420 H = atan2(b, a) = 180.720° L = 0.98358
6. OKLCH
oklch(0.98358 0.01420 180.720) rounded: oklch(0.984 0.014 180.7)
All formats
- HEX
- #f0fdfa
- RGB
- rgb(240 253 250)
- RGB (legacy)
- rgb(240, 253, 250)
- HSL
- hsl(166.15 76.47% 96.67%) → hsl(166 76% 97%)
- HWB
- hwb(166 94% 1%)
- OKLCH
- oklch(0.984 0.014 180.7) · oklch(98.4% 0.014 180.7)
- OKLab
- oklab(0.984 -0.014 0.000)
- Lab (D50)
- lab(98.27 -4.82 -0.11)
- LCH (D50)
- lch(98.27 4.82 181.35)
- Display P3
- color(display-p3 0.9505 0.9905 0.9806)
- Linear sRGB
- color(srgb-linear 0.8714 0.9823 0.9560)
Gamut: sRGB and Display P3
#F0FDFA is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.022 and Display P3 reaches 0.026; this color uses 63% of the sRGB chroma available.
CSS snippets
.element {
color: #f0fdfa;
color: rgb(240 253 250);
color: hsl(166 76% 97%);
color: oklch(0.984 0.014 180.7);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.984 0.014 180.7);
}
/* arbitrary values */
class="text-[#f0fdfa] bg-[oklch(0.984_0.014_180.7)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9505 0.9905 0.9806); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #f0fdfa calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- azure#F0FFFF
- cyan-50#ECFEFF
- green-50#F0FDF4
- mintcream#F5FFFA
- emerald-50#ECFDF5
- mist-50#F9FBFB
- slate-50#F8FAFC
- gray-50#F9FAFB
Lighter and darker, same hue and chroma
- #F5FFFF · oklch(1.000 0.014 180.7) · ΔL +0.06
- #DCE9E6 · oklch(0.924 0.014 180.7) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?