#D997EA#D997EA

#D997EA is a light, vivid purple. Relative luminance 0.428; OKLCH L 76.9% C 0.135 H 319.3°. Best body text is #000000 at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#D997EA
RGBrgb(217, 151, 234)
HSLhsl(288, 66%, 75%)
HSVhsv(288, 35%, 92%)
CMYKcmyk(7.3%, 35.5%, 0%, 8.2%)
CIE-LABlab(71.44, 38.58, -32.11)
CIE-LCHlch(71.44, 50.19, 320.24°)
OKLaboklab(76.92% 0.1021 -0.0879)
OKLCHoklch(76.92% 0.135 319.3)
XYZxyz(54.5312, 42.8270, 83.2198)
Luminance0.4283 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D997EA #A8EA97
analogous
#AF97EA #D997EA #EA97D1
triadic
#D997EA #EAD997 #97EAD9
tetradic
#D997EA #EAAF97 #A8EA97 #97D1EA
square
#D997EA #EAAF97 #A8EA97 #97D1EA
split-complementary
#D997EA #D1EA97 #97EAAF
monochromatic
#B431D5 #C664E0 #D997EA #ECCAF4 #F6E6FA

Accessibility & contrast

On white

2.20
#D997EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.57
#D997EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D997EA
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D997EA#FFFFFF#000000##000000
##D997EA1.002.209.579.57
#FFFFFF2.201.0021.0021.00
#0000009.5721.001.001.00
##0000009.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CAAED
Deuteranopia (green-blind)
#9CB1E7
Tritanopia (blue-blind)
#DAA1B6
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #d997ea;
/* rgb */ color: rgb(217, 151, 234);
/* oklch */ color: oklch(76.9% 0.135 319.3);
Tailwind
colors: {
  custom: {
    50: '#e6b6f1',
    500: '#d997ea',
    950: '#000000',
  },
}
SCSS
$custom: #d997ea;
$custom-light: #e6b6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#d997ea",
  "rgb": {
    "r": 217,
    "g": 151,
    "b": 234
  },
  "hsl": {
    "h": 287.711,
    "s": 66.4,
    "l": 75.49
  },
  "oklch": {
    "l": 0.76922,
    "c": 0.1347,
    "h": 319.3
  },
  "luminance": 0.42825
}

Semantic roles & 50–950 ramp

primary
#D997EA
secondary
#DFF1DA
accent
#CE173D
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161116
muted
#848084

Preview Lab

Preview with #D997EA

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

Preview Lab → · Contrast checker → · Palette generator →

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