HSL to HEX: #1C1917

Also known as: Tailwind stone-900, Tailwind v3 stone-900

Result

hsl(24.00 9.80% 10.00%) → #1C1917

Values are shown at full precision, so converting back gives exactly #1c1917. 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

    H = 24.00°, S = 9.80%, L = 10.00%
  2. 2. C

    C = (1 − |2L − 1|) × S = 0.01960
  3. 3. X

    X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.00784   (H / 60° = 0.4000, sector 0)
  4. 4. m

    m = L − C / 2 = 0.09020
  5. 5. (R′, G′, B′) + m

    (R′, G′, B′) = (0.01960, 0.00784, 0.00000)
    R = round((0.01960 + 0.09020) × 255) = 28
    G = round((0.00784 + 0.09020) × 255) = 25
    B = round((0.00000 + 0.09020) × 255) = 23
  6. 6. RGB → HEX

    #1C1917

All formats

HEX
#1c1917
RGB
rgb(28 25 23)
RGB (legacy)
rgb(28, 25, 23)
HSL
hsl(24.00 9.80% 10.00%) → hsl(24 10% 10%)
HWB
hwb(24 9% 89%)
OKLCH
oklch(0.216 0.006 56.0) · oklch(21.6% 0.006 56.0)
OKLab
oklab(0.216 0.003 0.005)
Lab (D50)
lab(9.05 1.18 1.97)
LCH (D50)
lch(9.05 2.30 59.13)
Display P3
color(display-p3 0.1078 0.0985 0.0911)
Linear sRGB
color(srgb-linear 0.0116 0.0097 0.0086)

Gamut: sRGB and Display P3

#1C1917 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.053 and Display P3 reaches 0.060; this color uses 12% of the sRGB chroma available.

CSS snippets

.element {
  color: #1c1917;
  color: rgb(28 25 23);
  color: hsl(24 10% 10%);
  color: oklch(0.216 0.006 56.0);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.216 0.006 56.0);
}
/* arbitrary values */
class="text-[#1c1917] bg-[oklch(0.216_0.006_56.0)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.1078 0.0985 0.0911); }
}

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

  • #2A2725 · oklch(0.276 0.006 56.0) · ΔL +0.06
  • #0F0C0A · oklch(0.156 0.006 56.0) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?