HEX to OKLCH: #4A5565
Also known as: Tailwind gray-600
Result
#4A5565 → oklch(0.446 0.030 257.7)
Values are shown at full precision, so converting back gives exactly #4a5565. 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: 74/255 = 0.29020 → 0.068478 (((x + 0.055) / 1.055)^2.4) G: 85/255 = 0.33333 → 0.090842 (((x + 0.055) / 1.055)^2.4) B: 101/255 = 0.39608 → 0.130136 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.083645 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.090323 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.113622
3. cube root
l′ = ∛0.083645 = 0.437333 m′ = ∛0.090323 = 0.448676 s′ = ∛0.113622 = 0.484344
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.44614 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = -0.00636 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.02914
5. Oklab → OKLCH
C = √(a² + b²) = 0.02982 H = atan2(b, a) = 257.680° L = 0.44614
6. OKLCH
oklch(0.44614 0.02982 257.680) rounded: oklch(0.446 0.030 257.7)
All formats
- HEX
- #4a5565
- RGB
- rgb(74 85 101)
- RGB (legacy)
- rgb(74, 85, 101)
- HSL
- hsl(215.56 15.43% 34.31%) → hsl(216 15% 34%)
- HWB
- hwb(216 29% 60%)
- OKLCH
- oklch(0.446 0.030 257.7) · oklch(44.6% 0.030 257.7)
- OKLab
- oklab(0.446 -0.006 -0.029)
- Lab (D50)
- lab(35.64 -1.43 -10.82)
- LCH (D50)
- lch(35.64 10.91 262.47)
- Display P3
- color(display-p3 0.2984 0.3320 0.3904)
- Linear sRGB
- color(srgb-linear 0.0685 0.0908 0.1301)
Gamut: sRGB and Display P3
#4A5565 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.163 and Display P3 reaches 0.207; this color uses 18% of the sRGB chroma available.
CSS snippets
.element {
color: #4a5565;
color: rgb(74 85 101);
color: hsl(216 15% 34%);
color: oklch(0.446 0.030 257.7);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.446 0.030 257.7);
}
/* arbitrary values */
class="text-[#4a5565] bg-[oklch(0.446_0.030_257.7)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2984 0.3320 0.3904); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #4a5565 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 gray-600#4B5563
- v3 slate-600#475569
- slate-600#45556C
- zinc-600#52525C
- v3 zinc-600#52525B
- mist-600#4B585B
- neutral-600#525252
- mauve-600#594C5B
Lighter and darker, same hue and chroma
- #5A6676 · oklch(0.506 0.030 257.7) · ΔL +0.06
- #3A4554 · oklch(0.386 0.030 257.7) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?