#D99FEF#D99FEF

#D99FEF is a light, vivid purple. Relative luminance 0.458; OKLCH L 78.5% C 0.126 H 316.5°. Best body text is #000000 at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#D99FEF
RGBrgb(217, 159, 239)
HSLhsl(284, 71%, 78%)
HSVhsv(284, 33%, 94%)
CMYKcmyk(9.2%, 33.5%, 0%, 6.3%)
CIE-LABlab(73.40, 35.28, -31.80)
CIE-LCHlch(73.40, 47.49, 317.97°)
OKLaboklab(78.48% 0.0916 -0.0871)
OKLCHoklch(78.48% 0.126 316.5)
XYZxyz(56.5911, 45.7812, 87.5001)
Luminance0.4578 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D99FEF #B5EF9F
analogous
#B19FEF #D99FEF #EF9FDD
triadic
#D99FEF #EFD99F #9FEFD9
tetradic
#D99FEF #EFB19F #B5EF9F #9FDDEF
square
#D99FEF #EFB19F #B5EF9F #9FDDEF
split-complementary
#D99FEF #DDEF9F #9FEFB1
monochromatic
#AF36DE #C46BE6 #D99FEF #EED3F8 #F5E5FB

Accessibility & contrast

On white

2.07
#D99FEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

10.16
#D99FEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D99FEF
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D99FEF#FFFFFF#000000##000000
##D99FEF1.002.0710.1610.16
#FFFFFF2.071.0021.0021.00
#00000010.1621.001.001.00
##00000010.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#93B1F2
Deuteranopia (green-blind)
#A1B6ED
Tritanopia (blue-blind)
#D8A9BC
Achromatopsia (no color)
#B4B4B4

Design tokens & code

CSS
--color: #d99fef;
/* rgb */ color: rgb(217, 159, 239);
/* oklch */ color: oklch(78.5% 0.126 316.5);
Tailwind
colors: {
  custom: {
    50: '#e5bcf4',
    500: '#d99fef',
    950: '#000000',
  },
}
SCSS
$custom: #d99fef;
$custom-light: #e5bcf4;
$custom-dark: #000000;
JSON
{
  "hex": "#d99fef",
  "rgb": {
    "r": 217,
    "g": 159,
    "b": 239
  },
  "hsl": {
    "h": 283.5,
    "s": 71.429,
    "l": 78.039
  },
  "oklch": {
    "l": 0.78476,
    "c": 0.12642,
    "h": 316.5
  },
  "luminance": 0.4578
}

Semantic roles & 50–950 ramp

primary
#D99FEF
secondary
#E0F2D9
accent
#D31247
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161217
muted
#848185

Preview Lab

Preview with #D99FEF

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

Preview Lab → · Contrast checker → · Palette generator →

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