OKLCH to HEX: #F59E0B

Also known as: Tailwind v3 amber-500

Result

oklch(0.76859 0.16466 70.080) → #F59E0B

Values are shown at full precision, so converting back gives exactly #f59e0b. 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.76859 0.16466 70.080)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.05610
    b = C·sin H = 0.15481
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.824233
    m′ = L − 0.1056·a − 0.0639·b = 0.752783
    s′ = L − 0.0895·a − 1.2915·b = 0.563637
  4. 4. cube

    l = 0.824233³ = 0.559951
    m = 0.752783³ = 0.426588
    s = 0.563637³ = 0.179060
  5. 5. LMS → linear sRGB

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

    R = 0.96079 × 255 = 245.00 → 245
    G = 0.61961 × 255 = 158.00 → 158
    B = 0.04313 × 255 = 11.00 → 11
  7. 7. RGB → HEX

    #F59E0B

All formats

HEX
#f59e0b
RGB
rgb(245 158 11)
RGB (legacy)
rgb(245, 158, 11)
HSL
hsl(37.69 92.13% 50.20%) → hsl(38 92% 50%)
HWB
hwb(38 4% 4%)
OKLCH
oklch(0.769 0.165 70.1) · oklch(76.9% 0.165 70.1)
OKLab
oklab(0.769 0.056 0.155)
Lab (D50)
lab(72.79 26.93 75.43)
LCH (D50)
lch(72.79 80.10 70.35)
Display P3
color(display-p3 0.9122 0.6349 0.2305)
Linear sRGB
color(srgb-linear 0.9131 0.3419 0.0033)

Gamut: sRGB and Display P3

#F59E0B is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.166 and Display P3 reaches 0.191; this color uses 99% of the sRGB chroma available.

CSS snippets

.element {
  color: #f59e0b;
  color: rgb(245 158 11);
  color: hsl(38 92% 50%);
  color: oklch(0.769 0.165 70.1);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.769 0.165 70.1);
}
/* arbitrary values */
class="text-[#f59e0b] bg-[oklch(0.769_0.165_70.1)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9122 0.6349 0.2305); }
}

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

  • #FFB133 · oklch(0.829 0.165 70.1) · ΔL +0.06
  • #E18B00 · oklch(0.709 0.165 70.1) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?