RGB to HEX: #E9D5FF

Also known as: Tailwind v3 purple-200

Result

rgb(233 213 255) → #E9D5FF

Values are shown at full precision, so converting back gives exactly #e9d5ff. 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 = 233 = 14×16 + 9 → E9
    G = 213 = 13×16 + 5 → D5
    B = 255 = 15×16 + 15 → FF
  2. 2. pairs → HEX

    E9 D5 FF → #E9D5FF

All formats

HEX
#e9d5ff
RGB
rgb(233 213 255)
RGB (legacy)
rgb(233, 213, 255)
HSL
hsl(268.57 100.00% 91.76%) → hsl(269 100% 92%)
HWB
hwb(269 84% 0%)
OKLCH
oklch(0.902 0.060 306.7) · oklch(90.2% 0.060 306.7)
OKLab
oklab(0.902 0.036 -0.048)
Lab (D50)
lab(87.92 12.86 -17.96)
LCH (D50)
lch(87.92 22.09 305.60)
Display P3
color(display-p3 0.9005 0.8381 0.9879)
Linear sRGB
color(srgb-linear 0.8148 0.6654 1.0000)

Gamut: sRGB and Display P3

#E9D5FF is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.060 and Display P3 reaches 0.067; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #e9d5ff;
  color: rgb(233 213 255);
  color: hsl(269 100% 92%);
  color: oklch(0.902 0.060 306.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.902 0.060 306.7);
}
/* arbitrary values */
class="text-[#e9d5ff] bg-[oklch(0.902_0.060_306.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9005 0.8381 0.9879); }
}

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

  • #FDE9FF · oklch(0.962 0.060 306.7) · ΔL +0.06
  • #D5C2EB · oklch(0.842 0.060 306.7) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?