HEX to OKLCH: #A0522D
Also known as: CSS sienna
Result
#A0522D → oklch(0.526 0.115 44.6)
Values are shown at full precision, so converting back gives exactly #a0522d. 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: 160/255 = 0.62745 → 0.351533 (((x + 0.055) / 1.055)^2.4) G: 82/255 = 0.32157 → 0.084376 (((x + 0.055) / 1.055)^2.4) B: 45/255 = 0.17647 → 0.026241 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.191513 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.134744 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.071343
3. cube root
l′ = ∛0.191513 = 0.576412 m′ = ∛0.134744 = 0.512668 s′ = ∛0.071343 = 0.414747
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.52648 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.08196 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.08084
5. Oklab → OKLCH
C = √(a² + b²) = 0.11512 H = atan2(b, a) = 44.604° L = 0.52648
6. OKLCH
oklch(0.52648 0.11512 44.604) rounded: oklch(0.526 0.115 44.6)
All formats
- HEX
- #a0522d
- RGB
- rgb(160 82 45)
- RGB (legacy)
- rgb(160, 82, 45)
- HSL
- hsl(19.30 56.10% 40.20%) → hsl(19 56% 40%)
- HWB
- hwb(19 18% 37%)
- OKLCH
- oklch(0.526 0.115 44.6) · oklch(52.6% 0.115 44.6)
- OKLab
- oklab(0.526 0.082 0.081)
- Lab (D50)
- lab(44.27 30.91 36.35)
- LCH (D50)
- lch(44.27 47.71 49.62)
- Display P3
- color(display-p3 0.5875 0.3376 0.2091)
- Linear sRGB
- color(srgb-linear 0.3515 0.0844 0.0262)
Gamut: sRGB and Display P3
#A0522D is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.152 and Display P3 reaches 0.172; this color uses 76% of the sRGB chroma available.
CSS snippets
.element {
color: #a0522d;
color: rgb(160 82 45);
color: hsl(19 56% 40%);
color: oklch(0.526 0.115 44.6);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.526 0.115 44.6);
}
/* arbitrary values */
class="text-[#a0522d] bg-[oklch(0.526_0.115_44.6)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.5875 0.3376 0.2091); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #a0522d calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 amber-700#B45309
- yellow-700#A65F00
- v3 yellow-700#A16207
- amber-700#BB4D00
- v3 amber-800#92400E
- amber-800#973C00
- saddlebrown#8B4513
- yellow-800#894B00
Lighter and darker, same hue and chroma
- #B4643F · oklch(0.586 0.115 44.6) · ΔL +0.06
- #8D411A · oklch(0.466 0.115 44.6) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?