OKLCH to HEX: #0C0A09

Also known as: Tailwind stone-950, Tailwind taupe-950, Tailwind v3 stone-950

Result

oklch(0.14690 0.00413 49.250) → #0C0A09

Values are shown at full precision, so converting back gives exactly #0c0a09. 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.14690 0.00413 49.250)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.00270
    b = C·sin H = 0.00313
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.148644
    m′ = L − 0.1056·a − 0.0639·b = 0.146416
    s′ = L − 0.0895·a − 1.2915·b = 0.142618
  4. 4. cube

    l = 0.148644³ = 0.003284
    m = 0.146416³ = 0.003139
    s = 0.142618³ = 0.002901
  5. 5. LMS → linear sRGB

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

    R = 0.04706 × 255 = 12.00 → 12
    G = 0.03922 × 255 = 10.00 → 10
    B = 0.03530 × 255 = 9.00 → 9
  7. 7. RGB → HEX

    #0C0A09

All formats

HEX
#0c0a09
RGB
rgb(12 10 9)
RGB (legacy)
rgb(12, 10, 9)
HSL
hsl(20.00 14.29% 4.12%) → hsl(20 14% 4%)
HWB
hwb(20 4% 95%)
OKLCH
oklch(0.147 0.004 49.3) · oklch(14.7% 0.004 49.3)
OKLab
oklab(0.147 0.003 0.003)
Lab (D50)
lab(2.85 0.47 0.59)
LCH (D50)
lch(2.85 0.75 51.27)
Display P3
color(display-p3 0.0457 0.0395 0.0358)
Linear sRGB
color(srgb-linear 0.0037 0.0030 0.0027)

Gamut: sRGB and Display P3

#0C0A09 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.039 and Display P3 reaches 0.045; this color uses 11% of the sRGB chroma available.

CSS snippets

.element {
  color: #0c0a09;
  color: rgb(12 10 9);
  color: hsl(20 14% 4%);
  color: oklch(0.147 0.004 49.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.147 0.004 49.3);
}
/* arbitrary values */
class="text-[#0c0a09] bg-[oklch(0.147_0.004_49.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.0457 0.0395 0.0358); }
}

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

  • #191716 · oklch(0.207 0.004 49.3) · ΔL +0.06
  • #030202 · oklch(0.087 0.004 49.3) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?