HEX to OKLCH: #F4F4F5
Also known as: Tailwind zinc-100, Tailwind v3 zinc-100
Result
#F4F4F5 → oklch(0.967 0.001 286.4)
Values are shown at full precision, so converting back gives exactly #f4f4f5. 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: 244/255 = 0.95686 → 0.904661 (((x + 0.055) / 1.055)^2.4) G: 244/255 = 0.95686 → 0.904661 (((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.905095 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.905567 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.909977
3. cube root
l′ = ∛0.905095 = 0.967308 m′ = ∛0.905567 = 0.967476 s′ = ∛0.909977 = 0.969044
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.96743 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.00037 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.00127
5. Oklab → OKLCH
C = √(a² + b²) = 0.00133 H = atan2(b, a) = 286.375° L = 0.96743
6. OKLCH
oklch(0.96743 0.00133 286.375) rounded: oklch(0.967 0.001 286.4)
All formats
- HEX
- #f4f4f5
- RGB
- rgb(244 244 245)
- RGB (legacy)
- rgb(244, 244, 245)
- HSL
- hsl(240.00 4.76% 95.88%) → hsl(240 5% 96%)
- HWB
- hwb(240 96% 4%)
- OKLCH
- oklch(0.967 0.001 286.4) · oklch(96.7% 0.001 286.4)
- OKLab
- oklab(0.967 0.000 -0.001)
- Lab (D50)
- lab(96.21 0.13 -0.48)
- LCH (D50)
- lch(96.21 0.50 285.28)
- Display P3
- color(display-p3 0.9569 0.9569 0.9604)
- Linear sRGB
- color(srgb-linear 0.9047 0.9047 0.9131)
Gamut: sRGB and Display P3
#F4F4F5 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.016 and Display P3 reaches 0.018; this color uses 8% of the sRGB chroma available.
CSS snippets
.element {
color: #f4f4f5;
color: rgb(244 244 245);
color: hsl(240 5% 96%);
color: oklch(0.967 0.001 286.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.967 0.001 286.4);
}
/* arbitrary values */
class="text-[#f4f4f5] bg-[oklch(0.967_0.001_286.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9569 0.9569 0.9604); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #f4f4f5 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- gray-100#F3F4F6
- neutral-100#F5F5F5
- stone-100#F5F5F4
- mist-100#F1F3F3
- slate-100#F1F5F9
- olive-100#F4F4F0
- mauve-100#F3F1F3
- taupe-100#F3F1F1
Lighter and darker, same hue and chroma
- #FFFFFF · oklch(1.000 0.001 286.4) · ΔL +0.06
- #E0E0E1 · oklch(0.907 0.001 286.4) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?