RGB to HEX: #D8F999

Also known as: Tailwind lime-200

Result

rgb(216 249 153) → #D8F999

Values are shown at full precision, so converting back gives exactly #d8f999. 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. base 10 → base 16

    R = 216 = 13×16 + 8 → D8
    G = 249 = 15×16 + 9 → F9
    B = 153 = 9×16 + 9 → 99
  2. 2. pairs → HEX

    D8 F9 99 → #D8F999

All formats

HEX
#d8f999
RGB
rgb(216 249 153)
RGB (legacy)
rgb(216, 249, 153)
HSL
hsl(80.63 88.89% 78.82%) → hsl(81 89% 79%)
HWB
hwb(81 60% 2%)
OKLCH
oklch(0.937 0.126 124.3) · oklch(93.7% 0.126 124.3)
OKLab
oklab(0.937 -0.071 0.104)
Lab (D50)
lab(93.94 -22.39 42.34)
LCH (D50)
lch(93.94 47.89 117.87)
Display P3
color(display-p3 0.8719 0.9725 0.6424)
Linear sRGB
color(srgb-linear 0.6867 0.9473 0.3185)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #d8f999;
  color: rgb(216 249 153);
  color: hsl(81 89% 79%);
  color: oklch(0.937 0.126 124.3);
}

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

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.8719 0.9725 0.6424); }
}

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

  • #ECFFAD · oklch(0.997 0.126 124.3) · ΔL +0.06
  • #C5E586 · oklch(0.877 0.126 124.3) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?