#D997EE#D997EE

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

Color values

HEX#D997EE
RGBrgb(217, 151, 238)
HSLhsl(286, 72%, 76%)
HSVhsv(286, 37%, 93%)
CMYKcmyk(8.8%, 36.6%, 0%, 6.7%)
CIE-LABlab(71.60, 39.37, -34.05)
CIE-LCHlch(71.60, 52.05, 319.15°)
OKLaboklab(77.09% 0.103 -0.0934)
OKLCHoklch(77.09% 0.139 317.8)
XYZxyz(55.1123, 43.0594, 86.2804)
Luminance0.4306 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D997EE #ACEE97
analogous
#AE97EE #D997EE #EE97D8
triadic
#D997EE #EED997 #97EED9
tetradic
#D997EE #EEAE97 #ACEE97 #97D8EE
square
#D997EE #EEAE97 #ACEE97 #97D8EE
split-complementary
#D997EE #D8EE97 #97EEAE
monochromatic
#B32EDD #C662E5 #D997EE #ECCCF7 #F5E5FB

Accessibility & contrast

On white

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

On black

9.61
#D997EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D997EE
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D997EE#FFFFFF#000000##000000
##D997EE1.002.189.619.61
#FFFFFF2.181.0021.0021.00
#0000009.6121.001.001.00
##0000009.6121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d997ee;
/* rgb */ color: rgb(217, 151, 238);
/* oklch */ color: oklch(77.1% 0.139 317.8);
Tailwind
colors: {
  custom: {
    50: '#e6b6f3',
    500: '#d997ee',
    950: '#000000',
  },
}
SCSS
$custom: #d997ee;
$custom-light: #e6b6f3;
$custom-dark: #000000;
JSON
{
  "hex": "#d997ee",
  "rgb": {
    "r": 217,
    "g": 151,
    "b": 238
  },
  "hsl": {
    "h": 285.517,
    "s": 71.901,
    "l": 76.275
  },
  "oklch": {
    "l": 0.77093,
    "c": 0.13905,
    "h": 317.8
  },
  "luminance": 0.43058
}

Semantic roles & 50–950 ramp

primary
#D997EE
secondary
#DFF2D9
accent
#D41240
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161117
muted
#848085

Preview Lab

Preview with #D997EE

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

Preview Lab → · Contrast checker → · Palette generator →

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