#D997EF#D997EF

#D997EF is a light, vivid purple. Relative luminance 0.431; OKLCH L 77.1% C 0.140 H 317.4°. Best body text is #000000 at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#D997EF
RGBrgb(217, 151, 239)
HSLhsl(285, 73%, 76%)
HSVhsv(285, 37%, 94%)
CMYKcmyk(9.2%, 36.8%, 0%, 6.3%)
CIE-LABlab(71.64, 39.57, -34.53)
CIE-LCHlch(71.64, 52.52, 318.89°)
OKLaboklab(77.14% 0.1032 -0.0948)
OKLCHoklch(77.14% 0.14 317.4)
XYZxyz(55.2596, 43.1183, 87.0563)
Luminance0.4312 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D997EF #ADEF97
analogous
#AD97EF #D997EF #EF97D9
triadic
#D997EF #EFD997 #97EFD9
tetradic
#D997EF #EFAD97 #ADEF97 #97D9EF
square
#D997EF #EFAD97 #ADEF97 #97D9EF
split-complementary
#D997EF #D9EF97 #97EFAD
monochromatic
#B22DDF #C662E7 #D997EF #ECCCF7 #F5E4FB

Accessibility & contrast

On white

2.18
#D997EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.62
#D997EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D997EF
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D997EF#FFFFFF#000000##000000
##D997EF1.002.189.629.62
#FFFFFF2.181.0021.0021.00
#0000009.6221.001.001.00
##0000009.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AABF2
Deuteranopia (green-blind)
#9AB2EC
Tritanopia (blue-blind)
#D9A2B8
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #d997ef;
/* rgb */ color: rgb(217, 151, 239);
/* oklch */ color: oklch(77.1% 0.140 317.4);
Tailwind
colors: {
  custom: {
    50: '#e6b6f4',
    500: '#d997ef',
    950: '#000000',
  },
}
SCSS
$custom: #d997ef;
$custom-light: #e6b6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d997ef",
  "rgb": {
    "r": 217,
    "g": 151,
    "b": 239
  },
  "hsl": {
    "h": 285,
    "s": 73.333,
    "l": 76.471
  },
  "oklch": {
    "l": 0.77137,
    "c": 0.14014,
    "h": 317.4
  },
  "luminance": 0.43117
}

Semantic roles & 50–950 ramp

primary
#D997EF
secondary
#DFF3D8
accent
#D51041
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161117
muted
#848085

Preview Lab

Preview with #D997EF

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

Preview Lab → · Contrast checker → · Palette generator →

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