HEX to OKLCH: #52525B
Also known as: Tailwind v3 zinc-600
Result
#52525B → oklch(0.442 0.015 285.8)
Values are shown at full precision, so converting back gives exactly #52525b. 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: 82/255 = 0.32157 → 0.084376 (((x + 0.055) / 1.055)^2.4) G: 82/255 = 0.32157 → 0.084376 (((x + 0.055) / 1.055)^2.4) B: 91/255 = 0.35686 → 0.104616 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.085417 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.086550 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.097127
3. cube root
l′ = ∛0.085417 = 0.440402 m′ = ∛0.086550 = 0.442339 s′ = ∛0.097127 = 0.459671
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.44186 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.00398 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.01407
5. Oklab → OKLCH
C = √(a² + b²) = 0.01462 H = atan2(b, a) = 285.786° L = 0.44186
6. OKLCH
oklch(0.44186 0.01462 285.786) rounded: oklch(0.442 0.015 285.8)
All formats
- HEX
- #52525b
- RGB
- rgb(82 82 91)
- RGB (legacy)
- rgb(82, 82, 91)
- HSL
- hsl(240.00 5.20% 33.92%) → hsl(240 5% 34%)
- HWB
- hwb(240 32% 64%)
- OKLCH
- oklch(0.442 0.015 285.8) · oklch(44.2% 0.015 285.8)
- OKLab
- oklab(0.442 0.004 -0.014)
- Lab (D50)
- lab(35.12 1.51 -5.27)
- LCH (D50)
- lch(35.12 5.48 286.03)
- Display P3
- color(display-p3 0.3216 0.3216 0.3539)
- Linear sRGB
- color(srgb-linear 0.0844 0.0844 0.1046)
Gamut: sRGB and Display P3
#52525B is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.257 and Display P3 reaches 0.262; this color uses 6% of the sRGB chroma available.
CSS snippets
.element {
color: #52525b;
color: rgb(82 82 91);
color: hsl(240 5% 34%);
color: oklch(0.442 0.015 285.8);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.442 0.015 285.8);
}
/* arbitrary values */
class="text-[#52525b] bg-[oklch(0.442_0.015_285.8)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.3216 0.3216 0.3539); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #52525b calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- zinc-600#52525C
- neutral-600#525252
- v3 gray-600#4B5563
- gray-600#4A5565
- mist-600#4B585B
- mauve-600#594C5B
- v3 stone-600#57534E
- stone-600#57534D
Lighter and darker, same hue and chroma
- #63636C · oklch(0.502 0.015 285.8) · ΔL +0.06
- #42424B · oklch(0.382 0.015 285.8) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?