#D997DC#D997DC

#D997DC is a light, vivid purple. Relative luminance 0.421; OKLCH L 76.3% C 0.120 H 325.2°. Best body text is #000000 at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#D997DC
RGBrgb(217, 151, 220)
HSLhsl(297, 50%, 73%)
HSVhsv(297, 31%, 86%)
CMYKcmyk(1.4%, 31.4%, 0%, 13.7%)
CIE-LABlab(70.91, 35.90, -25.24)
CIE-LCHlch(70.91, 43.88, 324.89°)
OKLaboklab(76.35% 0.0986 -0.0685)
OKLCHoklch(76.35% 0.12 325.2)
XYZxyz(52.5988, 42.0540, 73.0428)
Luminance0.4205 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D997DC #9ADC97
analogous
#B697DC #D997DC #DC97BD
triadic
#D997DC #DCD997 #97DCD9
tetradic
#D997DC #DCB697 #9ADC97 #97BDDC
square
#D997DC #DCB697 #9ADC97 #97BDDC
split-complementary
#D997DC #BDDC97 #97DCB6
monochromatic
#B53FBA #C869CD #D997DC #EAC5EB #F7E8F7

Accessibility & contrast

On white

2.23
#D997DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.41
#D997DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D997DC
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D997DC#FFFFFF#000000##000000
##D997DC1.002.239.419.41
#FFFFFF2.231.0021.0021.00
#0000009.4121.001.001.00
##0000009.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#91A8DF
Deuteranopia (green-blind)
#A1B0DA
Tritanopia (blue-blind)
#DD9DB0
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #d997dc;
/* rgb */ color: rgb(217, 151, 220);
/* oklch */ color: oklch(76.3% 0.120 325.2);
Tailwind
colors: {
  custom: {
    50: '#e5b6e7',
    500: '#d997dc',
    950: '#000000',
  },
}
SCSS
$custom: #d997dc;
$custom-light: #e5b6e7;
$custom-dark: #000000;
JSON
{
  "hex": "#d997dc",
  "rgb": {
    "r": 217,
    "g": 151,
    "b": 220
  },
  "hsl": {
    "h": 297.391,
    "s": 49.64,
    "l": 72.745
  },
  "oklch": {
    "l": 0.76347,
    "c": 0.12002,
    "h": 325.2
  },
  "luminance": 0.42052
}

Semantic roles & 50–950 ramp

primary
#D997DC
secondary
#DDEEDD
accent
#BD292F
background
#FEFBFE
surface
#FCF6FC
border
#D5D0D5
text
#161116
muted
#848084

Preview Lab

Preview with #D997DC

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

Preview Lab → · Contrast checker → · Palette generator →

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