OKLCH to HEX: #78716C

Also known as: Tailwind v3 stone-500

Result

oklch(0.55340 0.01161 58.071) → #78716C

Values are shown at full precision, so converting back gives exactly #78716c. 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.55340 0.01161 58.071)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.00614
    b = C·sin H = 0.00985
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.557960
    m′ = L − 0.1056·a − 0.0639·b = 0.552123
    s′ = L − 0.0895·a − 1.2915·b = 0.540125
  4. 4. cube

    l = 0.557960³ = 0.173704
    m = 0.552123³ = 0.168309
    s = 0.540125³ = 0.157573
  5. 5. LMS → linear sRGB

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

    R = 0.47059 × 255 = 120.00 → 120
    G = 0.44313 × 255 = 113.00 → 113
    B = 0.42352 × 255 = 108.00 → 108
  7. 7. RGB → HEX

    #78716C

All formats

HEX
#78716c
RGB
rgb(120 113 108)
RGB (legacy)
rgb(120, 113, 108)
HSL
hsl(25.00 5.26% 44.71%) → hsl(25 5% 45%)
HWB
hwb(25 42% 53%)
OKLCH
oklch(0.553 0.012 58.1) · oklch(55.3% 0.012 58.1)
OKLab
oklab(0.553 0.006 0.010)
Lab (D50)
lab(48.17 2.10 3.81)
LCH (D50)
lch(48.17 4.35 61.14)
Display P3
color(display-p3 0.4659 0.4441 0.4258)
Linear sRGB
color(srgb-linear 0.1878 0.1651 0.1500)

Gamut: sRGB and Display P3

#78716C is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.132 and Display P3 reaches 0.151; this color uses 9% of the sRGB chroma available.

CSS snippets

.element {
  color: #78716c;
  color: rgb(120 113 108);
  color: hsl(25 5% 45%);
  color: oklch(0.553 0.012 58.1);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.553 0.012 58.1);
}
/* arbitrary values */
class="text-[#78716c] bg-[oklch(0.553_0.012_58.1)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.4659 0.4441 0.4258); }
}

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

  • #8A837D · oklch(0.613 0.012 58.1) · ΔL +0.06
  • #67605B · oklch(0.493 0.012 58.1) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?