HEX to OKLCH: #EA580C

Also known as: Tailwind v3 orange-600

Result

#EA580C → oklch(0.646 0.194 41.1)

Values are shown at full precision, so converting back gives exactly #ea580c. 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: 234/255 = 0.91765 → 0.822786  (((x + 0.055) / 1.055)^2.4)
    G: 88/255 = 0.34510 → 0.097587  (((x + 0.055) / 1.055)^2.4)
    B: 12/255 = 0.04706 → 0.003677  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.391698
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.241174
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.102462
  3. 3. cube root

    l′ = ∛0.391698 = 0.731673
    m′ = ∛0.241174 = 0.622458
    s′ = ∛0.102462 = 0.467938
  4. 4. LMS′ → Oklab

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

    C = √(a² + b²) = 0.19433
    H = atan2(b, a) = 41.116°
    L = 0.64607
  6. 6. OKLCH

    oklch(0.64607 0.19433 41.116)
    rounded: oklch(0.646 0.194 41.1)

All formats

HEX
#ea580c
RGB
rgb(234 88 12)
RGB (legacy)
rgb(234, 88, 12)
HSL
hsl(20.54 90.24% 48.24%) → hsl(21 90% 48%)
HWB
hwb(21 5% 8%)
OKLCH
oklch(0.646 0.194 41.1) · oklch(64.6% 0.194 41.1)
OKLab
oklab(0.646 0.146 0.128)
Lab (D50)
lab(57.39 55.59 65.41)
LCH (D50)
lch(57.39 85.84 49.64)
Display P3
color(display-p3 0.8511 0.3836 0.1698)
Linear sRGB
color(srgb-linear 0.8228 0.0976 0.0037)

Gamut: sRGB and Display P3

#EA580C is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.198 and Display P3 reaches 0.224; this color uses 98% of the sRGB chroma available.

CSS snippets

.element {
  color: #ea580c;
  color: rgb(234 88 12);
  color: hsl(21 90% 48%);
  color: oklch(0.646 0.194 41.1);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.646 0.194 41.1);
}
/* arbitrary values */
class="text-[#ea580c] bg-[oklch(0.646_0.194_41.1)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.8511 0.3836 0.1698); }
}

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

  • #FF6C2C · oklch(0.706 0.194 41.1) · ΔL +0.06
  • #D54300 · oklch(0.586 0.194 41.1) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?