HSL to HEX: #14532D

Also known as: Tailwind v3 green-900

Result

hsl(143.81 61.17% 20.20%) → #14532D

Values are shown at full precision, so converting back gives exactly #14532d. 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 = 143.81°, S = 61.17%, L = 20.20%
  2. 2. C

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

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

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

    (R′, G′, B′) = (0.00000, 0.24713, 0.09807)
    R = round((0.00000 + 0.07844) × 255) = 20
    G = round((0.24713 + 0.07844) × 255) = 83
    B = round((0.09807 + 0.07844) × 255) = 45
  6. 6. RGB → HEX

    #14532D

All formats

HEX
#14532d
RGB
rgb(20 83 45)
RGB (legacy)
rgb(20, 83, 45)
HSL
hsl(143.81 61.17% 20.20%) → hsl(144 61% 20%)
HWB
hwb(144 8% 67%)
OKLCH
oklch(0.393 0.090 152.5) · oklch(39.3% 0.090 152.5)
OKLab
oklab(0.393 -0.080 0.041)
Lab (D50)
lab(30.68 -27.94 16.32)
LCH (D50)
lch(30.68 32.36 149.71)
Display P3
color(display-p3 0.1564 0.3206 0.1907)
Linear sRGB
color(srgb-linear 0.0070 0.0865 0.0262)

Gamut: sRGB and Display P3

#14532D is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.102 and Display P3 reaches 0.142; this color uses 88% of the sRGB chroma available.

CSS snippets

.element {
  color: #14532d;
  color: rgb(20 83 45);
  color: hsl(144 61% 20%);
  color: oklch(0.393 0.090 152.5);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.393 0.090 152.5);
}
/* arbitrary values */
class="text-[#14532d] bg-[oklch(0.393_0.090_152.5)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.1564 0.3206 0.1907); }
}

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

  • #28643D · oklch(0.453 0.090 152.5) · ΔL +0.06
  • #00421E · oklch(0.333 0.090 152.5) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?