OKLCH to HEX: #78350F

Also known as: Tailwind v3 amber-900

Result

oklch(0.41371 0.10536 45.904) → #78350F

Values are shown at full precision, so converting back gives exactly #78350f. 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.41371 0.10536 45.904)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.07332
    b = C·sin H = 0.07567
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.459097
    m′ = L − 0.1056·a − 0.0639·b = 0.401139
    s′ = L − 0.0895·a − 1.2915·b = 0.309427
  4. 4. cube

    l = 0.459097³ = 0.096764
    m = 0.401139³ = 0.064548
    s = 0.309427³ = 0.029626
  5. 5. LMS → linear sRGB

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

    R = 0.47058 × 255 = 120.00 → 120
    G = 0.20785 × 255 = 53.00 → 53
    B = 0.05885 × 255 = 15.01 → 15
  7. 7. RGB → HEX

    #78350F

All formats

HEX
#78350f
RGB
rgb(120 53 15)
RGB (legacy)
rgb(120, 53, 15)
HSL
hsl(21.71 77.78% 26.47%) → hsl(22 78% 26%)
HWB
hwb(22 6% 53%)
OKLCH
oklch(0.414 0.105 45.9) · oklch(41.4% 0.105 45.9)
OKLab
oklab(0.414 0.073 0.076)
Lab (D50)
lab(31.25 28.29 36.34)
LCH (D50)
lch(31.25 46.05 52.10)
Display P3
color(display-p3 0.4376 0.2228 0.1007)
Linear sRGB
color(srgb-linear 0.1878 0.0356 0.0048)

Gamut: sRGB and Display P3

#78350F is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.116 and Display P3 reaches 0.132; this color uses 90% of the sRGB chroma available.

CSS snippets

.element {
  color: #78350f;
  color: rgb(120 53 15);
  color: hsl(22 78% 26%);
  color: oklch(0.414 0.105 45.9);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.414 0.105 45.9);
}
/* arbitrary values */
class="text-[#78350f] bg-[oklch(0.414_0.105_45.9)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4376 0.2228 0.1007); }
}

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

  • #8B4623 · oklch(0.474 0.105 45.9) · ΔL +0.06
  • #652400 · oklch(0.354 0.105 45.9) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?