#D99CEF#D99CEF

#D99CEF is a light, vivid purple. Relative luminance 0.448; OKLCH L 78.0% C 0.132 H 316.8°. Best body text is #000000 at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#D99CEF
RGBrgb(217, 156, 239)
HSLhsl(284, 72%, 77%)
HSVhsv(284, 35%, 94%)
CMYKcmyk(9.2%, 34.7%, 0%, 6.3%)
CIE-LABlab(72.73, 36.89, -32.83)
CIE-LCHlch(72.73, 49.39, 318.33°)
OKLaboklab(77.97% 0.096 -0.09)
OKLCHoklch(77.97% 0.132 316.8)
XYZxyz(56.0815, 44.7620, 87.3303)
Luminance0.4476 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D99CEF #B2EF9C
analogous
#AF9CEF #D99CEF #EF9CDC
triadic
#D99CEF #EFD99C #9CEFD9
tetradic
#D99CEF #EFAF9C #B2EF9C #9CDCEF
square
#D99CEF #EFAF9C #B2EF9C #9CDCEF
split-complementary
#D99CEF #DCEF9C #9CEFAF
monochromatic
#B133DE #C567E6 #D99CEF #EDD1F8 #F5E5FB

Accessibility & contrast

On white

2.11
#D99CEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.95
#D99CEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D99CEF
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D99CEF#FFFFFF#000000##000000
##D99CEF1.002.119.959.95
#FFFFFF2.111.0021.0021.00
#0000009.9521.001.001.00
##0000009.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#90AFF2
Deuteranopia (green-blind)
#9EB4EC
Tritanopia (blue-blind)
#D9A6BB
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #d99cef;
/* rgb */ color: rgb(217, 156, 239);
/* oklch */ color: oklch(78.0% 0.132 316.8);
Tailwind
colors: {
  custom: {
    50: '#e6baf4',
    500: '#d99cef',
    950: '#000000',
  },
}
SCSS
$custom: #d99cef;
$custom-light: #e6baf4;
$custom-dark: #000000;
JSON
{
  "hex": "#d99cef",
  "rgb": {
    "r": 217,
    "g": 156,
    "b": 239
  },
  "hsl": {
    "h": 284.096,
    "s": 72.174,
    "l": 77.451
  },
  "oklch": {
    "l": 0.77969,
    "c": 0.13158,
    "h": 316.8
  },
  "luminance": 0.44761
}

Semantic roles & 50–950 ramp

primary
#D99CEF
secondary
#DFF2D9
accent
#D41145
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161117
muted
#848085

Preview Lab

Preview with #D99CEF

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#D99CEF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva