RGB to HEX: #D1FAE5

Also known as: Tailwind v3 emerald-100

Result

rgb(209 250 229) → #D1FAE5

Values are shown at full precision, so converting back gives exactly #d1fae5. 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 = 209 = 13×16 + 1 → D1
    G = 250 = 15×16 + 10 → FA
    B = 229 = 14×16 + 5 → E5
  2. 2. pairs → HEX

    D1 FA E5 → #D1FAE5

All formats

HEX
#d1fae5
RGB
rgb(209 250 229)
RGB (legacy)
rgb(209, 250, 229)
HSL
hsl(149.27 80.39% 90.00%) → hsl(149 80% 90%)
HWB
hwb(149 82% 2%)
OKLCH
oklch(0.950 0.051 163.1) · oklch(95.0% 0.051 163.1)
OKLab
oklab(0.950 -0.049 0.015)
Lab (D50)
lab(94.94 -16.66 5.50)
LCH (D50)
lch(94.94 17.54 161.73)
Display P3
color(display-p3 0.8511 0.9756 0.9031)
Linear sRGB
color(srgb-linear 0.6376 0.9560 0.7835)

Gamut: sRGB and Display P3

#D1FAE5 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.074 and Display P3 reaches 0.083; this color uses 69% of the sRGB chroma available.

CSS snippets

.element {
  color: #d1fae5;
  color: rgb(209 250 229);
  color: hsl(149 80% 90%);
  color: oklch(0.950 0.051 163.1);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.950 0.051 163.1);
}
/* arbitrary values */
class="text-[#d1fae5] bg-[oklch(0.950_0.051_163.1)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.8511 0.9756 0.9031); }
}

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

  • #E1FFF5 · oklch(1.000 0.051 163.1) · ΔL +0.06
  • #BEE6D1 · oklch(0.890 0.051 163.1) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?