HEX to OKLCH: #FFDAB9
Also known as: CSS peachpuff
Result
#FFDAB9 → oklch(0.911 0.060 63.7)
Values are shown at full precision, so converting back gives exactly #ffdab9. 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: 255/255 = 1.00000 → 1.000000 (((x + 0.055) / 1.055)^2.4) G: 218/255 = 0.85490 → 0.701102 (((x + 0.055) / 1.055)^2.4) B: 185/255 = 0.72549 → 0.485150 (((x + 0.055) / 1.055)^2.4)
2. linear sRGB → LMS
l = 0.4122·R + 0.5363·G + 0.0514·B = 0.813204 m = 0.2119·R + 0.6807·G + 0.1074·B = 0.741247 s = 0.0883·R + 0.2817·G + 0.6300·B = 0.591450
3. cube root
l′ = ∛0.813204 = 0.933397 m′ = ∛0.741247 = 0.905012 s′ = ∛0.591450 = 0.839407
4. LMS′ → Oklab
L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.91125 a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.02659 b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.05379
5. Oklab → OKLCH
C = √(a² + b²) = 0.06000 H = atan2(b, a) = 63.699° L = 0.91125
6. OKLCH
oklch(0.91125 0.06000 63.699) rounded: oklch(0.911 0.060 63.7)
All formats
- HEX
- #ffdab9
- RGB
- rgb(255 218 185)
- RGB (legacy)
- rgb(255, 218, 185)
- HSL
- hsl(28.29 100.00% 86.27%) → hsl(28 100% 86%)
- HWB
- hwb(28 73% 0%)
- OKLCH
- oklch(0.911 0.060 63.7) · oklch(91.1% 0.060 63.7)
- OKLab
- oklab(0.911 0.027 0.054)
- Lab (D50)
- lab(89.60 9.78 21.32)
- LCH (D50)
- lch(89.60 23.46 65.35)
- Display P3
- color(display-p3 0.9763 0.8602 0.7416)
- Linear sRGB
- color(srgb-linear 1.0000 0.7011 0.4851)
Gamut: sRGB and Display P3
#FFDAB9 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.060 and Display P3 reaches 0.076; this color uses 100% of the sRGB chroma available.
CSS snippets
.element {
color: #ffdab9;
color: rgb(255 218 185);
color: hsl(28 100% 86%);
color: oklch(0.911 0.060 63.7);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.911 0.060 63.7);
}
/* arbitrary values */
class="text-[#ffdab9] bg-[oklch(0.911_0.060_63.7)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9763 0.8602 0.7416); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #ffdab9 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 orange-200#FED7AA
- wheat#F5DEB3
- navajowhite#FFDEAD
- orange-200#FFD6A7
- bisque#FFE4C4
- moccasin#FFE4B5
- blanchedalmond#FFEBCD
- antiquewhite#FAEBD7
Lighter and darker, same hue and chroma
- #FFEECC · oklch(0.971 0.060 63.7) · ΔL +0.06
- #EBC7A6 · oklch(0.851 0.060 63.7) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?