#D99DEC#D99DEC

#D99DEC is a light, vivid purple. Relative luminance 0.449; OKLCH L 78.0% C 0.127 H 317.8°. Best body text is #000000 at 9.98:1 contrast (WCAG AA passes).

Color values

HEX#D99DEC
RGBrgb(217, 157, 236)
HSLhsl(286, 68%, 77%)
HSVhsv(286, 33%, 93%)
CMYKcmyk(8.1%, 33.5%, 0%, 7.5%)
CIE-LABlab(72.84, 35.76, -31.03)
CIE-LCHlch(72.84, 47.34, 319.05°)
OKLaboklab(78.01% 0.0938 -0.0849)
OKLCHoklch(78.01% 0.127 317.8)
XYZxyz(55.8104, 44.9231, 85.0717)
Luminance0.4492 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D99DEC #B0EC9D
analogous
#B29DEC #D99DEC #EC9DD7
triadic
#D99DEC #ECD99D #9DECD9
tetradic
#D99DEC #ECB29D #B0EC9D #9DD7EC
square
#D99DEC #ECB29D #B0EC9D #9DD7EC
split-complementary
#D99DEC #D7EC9D #9DECB2
monochromatic
#B136D8 #C56AE2 #D99DEC #EDD0F6 #F5E5FA

Accessibility & contrast

On white

2.10
#D99DEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.98
#D99DEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D99DEC
9.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D99DEC#FFFFFF#000000##000000
##D99DEC1.002.109.989.98
#FFFFFF2.101.0021.0021.00
#0000009.9821.001.001.00
##0000009.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#92AFEF
Deuteranopia (green-blind)
#A0B5EA
Tritanopia (blue-blind)
#D9A6BA
Achromatopsia (no color)
#B3B3B3

Design tokens & code

CSS
--color: #d99dec;
/* rgb */ color: rgb(217, 157, 236);
/* oklch */ color: oklch(78.0% 0.127 317.8);
Tailwind
colors: {
  custom: {
    50: '#e5baf2',
    500: '#d99dec',
    950: '#000000',
  },
}
SCSS
$custom: #d99dec;
$custom-light: #e5baf2;
$custom-dark: #000000;
JSON
{
  "hex": "#d99dec",
  "rgb": {
    "r": 217,
    "g": 157,
    "b": 236
  },
  "hsl": {
    "h": 285.57,
    "s": 67.521,
    "l": 77.059
  },
  "oklch": {
    "l": 0.78011,
    "c": 0.12652,
    "h": 317.8
  },
  "luminance": 0.44922
}

Semantic roles & 50–950 ramp

primary
#D99DEC
secondary
#DFF2D9
accent
#CF1643
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161217
muted
#848185

Preview Lab

Preview with #D99DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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