OKLCH to HEX: #4A5565
Also known as: Tailwind gray-600
Result
oklch(0.44614 0.02982 257.680) → #4A5565
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. input
oklch(0.44614 0.02982 257.680)
2. OKLCH → Oklab
a = C·cos H = -0.00636 b = C·sin H = -0.02913
3. Oklab → LMS′
l′ = L + 0.3963·a + 0.2158·b = 0.437331 m′ = L − 0.1056·a − 0.0639·b = 0.448672 s′ = L − 0.0895·a − 1.2915·b = 0.484335
4. cube
l = 0.437331³ = 0.083643 m = 0.448672³ = 0.090321 s = 0.484335³ = 0.113615
5. LMS → linear sRGB
R = 4.0767·l − 3.3077·m + 0.2310·s = 0.068479 G = −1.2684·l + 2.6098·m − 0.3413·s = 0.090839 B = −0.0042·l − 0.7034·m + 1.7076·s = 0.130127
6. linear → sRGB, × 255
R = 0.29020 × 255 = 74.00 → 74 G = 0.33333 × 255 = 85.00 → 85 B = 0.39606 × 255 = 101.00 → 101
7. RGB → HEX
#4A5565
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?