HSL to HEX: #D9F99D

Also known as: Tailwind v3 lime-200

Result

hsl(80.87 88.46% 79.61%) → #D9F99D

Values are shown at full precision, so converting back gives exactly #d9f99d. 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 = 80.87°, S = 88.46%, L = 79.61%
  2. 2. C

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

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

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

    (R′, G′, B′) = (0.23526, 0.36074, 0.00000)
    R = round((0.23526 + 0.61573) × 255) = 217
    G = round((0.36074 + 0.61573) × 255) = 249
    B = round((0.00000 + 0.61573) × 255) = 157
  6. 6. RGB → HEX

    #D9F99D

All formats

HEX
#d9f99d
RGB
rgb(217 249 157)
RGB (legacy)
rgb(217, 249, 157)
HSL
hsl(80.87 88.46% 79.61%) → hsl(81 88% 80%)
HWB
hwb(81 62% 2%)
OKLCH
oklch(0.938 0.122 124.3) · oklch(93.8% 0.122 124.3)
OKLab
oklab(0.938 -0.069 0.100)
Lab (D50)
lab(94.05 -21.67 40.57)
LCH (D50)
lch(94.05 45.99 118.11)
Display P3
color(display-p3 0.8750 0.9726 0.6557)
Linear sRGB
color(srgb-linear 0.6939 0.9473 0.3372)

Gamut: sRGB and Display P3

#D9F99D is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.185 and Display P3 reaches 0.202; this color uses 66% of the sRGB chroma available.

CSS snippets

.element {
  color: #d9f99d;
  color: rgb(217 249 157);
  color: hsl(81 88% 80%);
  color: oklch(0.938 0.122 124.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.938 0.122 124.3);
}
/* arbitrary values */
class="text-[#d9f99d] bg-[oklch(0.938_0.122_124.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.8750 0.9726 0.6557); }
}

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

  • #EDFFB0 · oklch(0.998 0.122 124.3) · ΔL +0.06
  • #C6E58A · oklch(0.878 0.122 124.3) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?