HEX to OKLCH: #FFD6A7

Also known as: Tailwind orange-200

Result

#FFD6A7 → oklch(0.900 0.076 70.4)

Values are shown at full precision, so converting back gives exactly #ffd6a7. 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. 1. sRGB → linear

    R: 255/255 = 1.00000 → 1.000000  (((x + 0.055) / 1.055)^2.4)
    G: 214/255 = 0.83922 → 0.672443  (((x + 0.055) / 1.055)^2.4)
    B: 167/255 = 0.65490 → 0.386429  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.792755
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.711137
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.521185
  3. 3. cube root

    l′ = ∛0.792755 = 0.925507
    m′ = ∛0.711137 = 0.892588
    s′ = ∛0.521185 = 0.804755
  4. 4. LMS′ → Oklab

    L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.89987
    a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.02554
    b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.07188
  5. 5. Oklab → OKLCH

    C = √(a² + b²) = 0.07628
    H = atan2(b, a) = 70.442°
    L = 0.89987
  6. 6. OKLCH

    oklch(0.89987 0.07628 70.442)
    rounded: oklch(0.900 0.076 70.4)

All formats

HEX
#ffd6a7
RGB
rgb(255 214 167)
RGB (legacy)
rgb(255, 214, 167)
HSL
hsl(32.05 100.00% 82.75%) → hsl(32 100% 83%)
HWB
hwb(32 65% 0%)
OKLCH
oklch(0.900 0.076 70.4) · oklch(90.0% 0.076 70.4)
OKLab
oklab(0.900 0.026 0.072)
Lab (D50)
lab(88.35 10.10 28.91)
LCH (D50)
lch(88.35 30.62 70.74)
Display P3
color(display-p3 0.9740 0.8452 0.6782)
Linear sRGB
color(srgb-linear 1.0000 0.6724 0.3864)

Gamut: sRGB and Display P3

#FFD6A7 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.076 and Display P3 reaches 0.096; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #ffd6a7;
  color: rgb(255 214 167);
  color: hsl(32 100% 83%);
  color: oklch(0.900 0.076 70.4);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.900 0.076 70.4);
}
/* arbitrary values */
class="text-[#ffd6a7] bg-[oklch(0.900_0.076_70.4)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9740 0.8452 0.6782); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #ffd6a7 calc(l - 0.1) c h); }

Nearby colors

Closest colors in the Tailwind and CSS named palettes (OKLab distance).

Lighter and darker, same hue and chroma

  • #FFEABA · oklch(0.960 0.076 70.4) · ΔL +0.06
  • #EBC394 · oklch(0.840 0.076 70.4) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?