HEX to OKLCH: #4B5563
Also known as: Tailwind v3 gray-600
Result
#4B5563 → oklch(0.446 0.026 256.8)
Values are shown at full precision, so converting back gives exactly #4b5563. 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: 75/255 = 0.29412 → 0.070360 (((x + 0.055) / 1.055)^2.4) G: 85/255 = 0.33333 → 0.090842 (((x + 0.055) / 1.055)^2.4) B: 99/255 = 0.38824 → 0.124772 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.084144 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.090146 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.110408
3. cube root
l′ = ∛0.084144 = 0.438203 m′ = ∛0.090146 = 0.448382 s′ = ∛0.110408 = 0.479734
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.44611 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.00601 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.02562
5. Oklab → OKLCH
C = √(a² + b²) = 0.02631 H = atan2(b, a) = 256.802° L = 0.44611
6. OKLCH
oklch(0.44611 0.02631 256.802) rounded: oklch(0.446 0.026 256.8)
All formats
- HEX
- #4b5563
- RGB
- rgb(75 85 99)
- RGB (legacy)
- rgb(75, 85, 99)
- HSL
- hsl(215.00 13.79% 34.12%) → hsl(215 14% 34%)
- HWB
- hwb(215 29% 61%)
- OKLCH
- oklch(0.446 0.026 256.8) · oklch(44.6% 0.026 256.8)
- OKLab
- oklab(0.446 -0.006 -0.026)
- Lab (D50)
- lab(35.66 -1.46 -9.54)
- LCH (D50)
- lch(35.66 9.65 261.29)
- Display P3
- color(display-p3 0.3015 0.3321 0.3832)
- Linear sRGB
- color(srgb-linear 0.0704 0.0908 0.1248)
Gamut: sRGB and Display P3
#4B5563 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.157 and Display P3 reaches 0.200; this color uses 17% of the sRGB chroma available.
CSS snippets
.element {
color: #4b5563;
color: rgb(75 85 99);
color: hsl(215 14% 34%);
color: oklch(0.446 0.026 256.8);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.446 0.026 256.8);
}
/* arbitrary values */
class="text-[#4b5563] bg-[oklch(0.446_0.026_256.8)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.3015 0.3321 0.3832); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #4b5563 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- gray-600#4A5565
- v3 slate-600#475569
- zinc-600#52525C
- v3 zinc-600#52525B
- slate-600#45556C
- mist-600#4B585B
- neutral-600#525252
- mauve-600#594C5B
Lighter and darker, same hue and chroma
- #5C6674 · oklch(0.506 0.026 256.8) · ΔL +0.06
- #3B4552 · oklch(0.386 0.026 256.8) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?