OKLCH to HEX: #F97316

Also known as: Tailwind v3 orange-500

Result

oklch(0.70487 0.18672 47.604) → #F97316

Values are shown at full precision, so converting back gives exactly #f97316. 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. input

    oklch(0.70487 0.18672 47.604)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.12590
    b = C·sin H = 0.13789
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.784525
    m′ = L − 0.1056·a − 0.0639·b = 0.682775
    s′ = L − 0.0895·a − 1.2915·b = 0.515517
  4. 4. cube

    l = 0.784525³ = 0.482859
    m = 0.682775³ = 0.318297
    s = 0.515517³ = 0.137003
  5. 5. LMS → linear sRGB

    R = 4.0767·l − 3.3077·m + 0.2310·s = 0.947301
    G = −1.2684·l + 2.6098·m − 0.3413·s = 0.171440
    B = −0.0042·l − 0.7034·m + 1.7076·s = 0.008026
  6. 6. linear → sRGB, × 255

    R = 0.97647 × 255 = 249.00 → 249
    G = 0.45098 × 255 = 115.00 → 115
    B = 0.08629 × 255 = 22.00 → 22
  7. 7. RGB → HEX

    #F97316

All formats

HEX
#f97316
RGB
rgb(249 115 22)
RGB (legacy)
rgb(249, 115, 22)
HSL
hsl(24.58 94.98% 53.14%) → hsl(25 95% 53%)
HWB
hwb(25 9% 2%)
OKLCH
oklch(0.705 0.187 47.6) · oklch(70.5% 0.187 47.6)
OKLab
oklab(0.705 0.126 0.138)
Lab (D50)
lab(64.50 49.37 68.66)
LCH (D50)
lch(64.50 84.57 54.29)
Display P3
color(display-p3 0.9111 0.4814 0.2088)
Linear sRGB
color(srgb-linear 0.9473 0.1714 0.0080)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #f97316;
  color: rgb(249 115 22);
  color: hsl(25 95% 53%);
  color: oklch(0.705 0.187 47.6);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.705 0.187 47.6);
}
/* arbitrary values */
class="text-[#f97316] bg-[oklch(0.705_0.187_47.6)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9111 0.4814 0.2088); }
}

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

  • #FF8734 · oklch(0.765 0.187 47.6) · ΔL +0.06
  • #E45F00 · oklch(0.645 0.187 47.6) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?