HSL to HEX: #1A2E05

Also known as: Tailwind v3 lime-950

Result

hsl(89.27 80.39% 10.00%) → #1A2E05

Values are shown at full precision, so converting back gives exactly #1a2e05. 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 = 89.27°, S = 80.39%, L = 10.00%
  2. 2. C

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

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

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

    (R′, G′, B′) = (0.08235, 0.16078, 0.00000)
    R = round((0.08235 + 0.01961) × 255) = 26
    G = round((0.16078 + 0.01961) × 255) = 46
    B = round((0.00000 + 0.01961) × 255) = 5
  6. 6. RGB → HEX

    #1A2E05

All formats

HEX
#1a2e05
RGB
rgb(26 46 5)
RGB (legacy)
rgb(26, 46, 5)
HSL
hsl(89.27 80.39% 10.00%) → hsl(89 80% 10%)
HWB
hwb(89 2% 82%)
OKLCH
oklch(0.274 0.069 132.1) · oklch(27.4% 0.069 132.1)
OKLab
oklab(0.274 -0.046 0.051)
Lab (D50)
lab(16.49 -14.56 21.11)
LCH (D50)
lch(16.49 25.65 124.60)
Display P3
color(display-p3 0.1196 0.1784 0.0454)
Linear sRGB
color(srgb-linear 0.0103 0.0273 0.0015)

Gamut: sRGB and Display P3

#1A2E05 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.076 and Display P3 reaches 0.089; this color uses 90% of the sRGB chroma available.

CSS snippets

.element {
  color: #1a2e05;
  color: rgb(26 46 5);
  color: hsl(89 80% 10%);
  color: oklch(0.274 0.069 132.1);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.274 0.069 132.1);
}
/* arbitrary values */
class="text-[#1a2e05] bg-[oklch(0.274_0.069_132.1)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.1196 0.1784 0.0454); }
}

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

  • #293E15 · oklch(0.334 0.069 132.1) · ΔL +0.06
  • #0C1F00 · oklch(0.214 0.069 132.1) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?