HEX to OKLCH: #DEB887
Also known as: CSS burlywood
Result
#DEB887 → oklch(0.805 0.078 73.4)
Values are shown at full precision, so converting back gives exactly #deb887. 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: 222/255 = 0.87059 → 0.730461 (((x + 0.055) / 1.055)^2.4) G: 184/255 = 0.72157 → 0.479320 (((x + 0.055) / 1.055)^2.4) B: 135/255 = 0.52941 → 0.242281 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.570651 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.507080 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.352167
3. cube root
l′ = ∛0.570651 = 0.829450 m′ = ∛0.507080 = 0.797429 s′ = ∛0.352167 = 0.706181
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.80454 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.02222 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.07462
5. Oklab → OKLCH
C = √(a² + b²) = 0.07786 H = atan2(b, a) = 73.417° L = 0.80454
6. OKLCH
oklch(0.80454 0.07786 73.417) rounded: oklch(0.805 0.078 73.4)
All formats
- HEX
- #deb887
- RGB
- rgb(222 184 135)
- RGB (legacy)
- rgb(222, 184, 135)
- HSL
- hsl(33.79 56.86% 70.00%) → hsl(34 57% 70%)
- HWB
- hwb(34 53% 13%)
- OKLCH
- oklch(0.805 0.078 73.4) · oklch(80.5% 0.078 73.4)
- OKLab
- oklab(0.805 0.022 0.075)
- Lab (D50)
- lab(77.33 9.28 30.32)
- LCH (D50)
- lch(77.33 31.71 72.98)
- Display P3
- color(display-p3 0.8466 0.7272 0.5543)
- Linear sRGB
- color(srgb-linear 0.7305 0.4793 0.2423)
Gamut: sRGB and Display P3
#DEB887 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.168 and Display P3 reaches 0.196; this color uses 46% of the sRGB chroma available.
CSS snippets
.element {
color: #deb887;
color: rgb(222 184 135);
color: hsl(34 57% 70%);
color: oklch(0.805 0.078 73.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.805 0.078 73.4);
}
/* arbitrary values */
class="text-[#deb887] bg-[oklch(0.805_0.078_73.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.8466 0.7272 0.5543); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #deb887 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- tan#D2B48C
- v3 orange-300#FDBA74
- orange-300#FFB86A
- sandybrown#F4A460
- darkkhaki#BDB76B
- lightsalmon#FFA07A
- silver#C0C0C0
- darksalmon#E9967A
Lighter and darker, same hue and chroma
- #F2CB9A · oklch(0.865 0.078 73.4) · ΔL +0.06
- #CAA575 · oklch(0.745 0.078 73.4) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?