HEX to OKLCH: #FED7AA

Also known as: Tailwind v3 orange-200

Result

#FED7AA → oklch(0.901 0.073 70.7)

Values are shown at full precision, so converting back gives exactly #fed7aa. 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: 254/255 = 0.99608 → 0.991102  (((x + 0.055) / 1.055)^2.4)
    G: 215/255 = 0.84314 → 0.679542  (((x + 0.055) / 1.055)^2.4)
    B: 170/255 = 0.66667 → 0.401978  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.793694
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.715753
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.532194
  3. 3. cube root

    l′ = ∛0.793694 = 0.925872
    m′ = ∛0.715753 = 0.894515
    s′ = ∛0.532194 = 0.810382
  4. 4. LMS′ → Oklab

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

    C = √(a² + b²) = 0.07295
    H = atan2(b, a) = 70.697°
    L = 0.90146
  6. 6. OKLCH

    oklch(0.90146 0.07295 70.697)
    rounded: oklch(0.901 0.073 70.7)

All formats

HEX
#fed7aa
RGB
rgb(254 215 170)
RGB (legacy)
rgb(254, 215, 170)
HSL
hsl(32.14 97.67% 83.14%) → hsl(32 98% 83%)
HWB
hwb(32 67% 0%)
OKLCH
oklch(0.901 0.073 70.7) · oklch(90.1% 0.073 70.7)
OKLab
oklab(0.901 0.024 0.069)
Lab (D50)
lab(88.54 9.49 27.61)
LCH (D50)
lch(88.54 29.19 71.03)
Display P3
color(display-p3 0.9712 0.8488 0.6888)
Linear sRGB
color(srgb-linear 0.9911 0.6795 0.4020)

Gamut: sRGB and Display P3

#FED7AA is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.075 and Display P3 reaches 0.095; this color uses 97% of the sRGB chroma available.

CSS snippets

.element {
  color: #fed7aa;
  color: rgb(254 215 170);
  color: hsl(32 98% 83%);
  color: oklch(0.901 0.073 70.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.901 0.073 70.7);
}
/* arbitrary values */
class="text-[#fed7aa] bg-[oklch(0.901_0.073_70.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9712 0.8488 0.6888); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #fed7aa 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

  • #FFEBBD · oklch(0.961 0.073 70.7) · ΔL +0.06
  • #EAC497 · oklch(0.841 0.073 70.7) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?