OKLCH to HEX: #DAA520

Also known as: CSS goldenrod

Result

oklch(0.75157 0.14693 83.988) → #DAA520

Values are shown at full precision, so converting back gives exactly #daa520. 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.75157 0.14693 83.988)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.01539
    b = C·sin H = 0.14612
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.789203
    m′ = L − 0.1056·a − 0.0639·b = 0.740615
    s′ = L − 0.0895·a − 1.2915·b = 0.561479
  4. 4. cube

    l = 0.789203³ = 0.491548
    m = 0.740615³ = 0.406235
    s = 0.561479³ = 0.177011
  5. 5. LMS → linear sRGB

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

    R = 0.85490 × 255 = 218.00 → 218
    G = 0.64706 × 255 = 165.00 → 165
    B = 0.12552 × 255 = 32.01 → 32
  7. 7. RGB → HEX

    #DAA520

All formats

HEX
#daa520
RGB
rgb(218 165 32)
RGB (legacy)
rgb(218, 165, 32)
HSL
hsl(42.90 74.40% 49.02%) → hsl(43 74% 49%)
HWB
hwb(43 13% 15%)
OKLCH
oklch(0.752 0.147 84.0) · oklch(75.2% 0.147 84.0)
OKLab
oklab(0.752 0.015 0.146)
Lab (D50)
lab(71.32 12.21 68.68)
LCH (D50)
lch(71.32 69.76 79.92)
Display P3
color(display-p3 0.8229 0.6554 0.2537)
Linear sRGB
color(srgb-linear 0.7011 0.3763 0.0144)

Gamut: sRGB and Display P3

#DAA520 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.154 and Display P3 reaches 0.178; this color uses 95% of the sRGB chroma available.

CSS snippets

.element {
  color: #daa520;
  color: rgb(218 165 32);
  color: hsl(43 74% 49%);
  color: oklch(0.752 0.147 84.0);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.752 0.147 84.0);
}
/* arbitrary values */
class="text-[#daa520] bg-[oklch(0.752_0.147_84.0)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.8229 0.6554 0.2537); }
}

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

  • #EEB83D · oklch(0.812 0.147 84.0) · ΔL +0.06
  • #C69200 · oklch(0.692 0.147 84.0) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?