#D997EC#D997EC

#D997EC is a light, vivid purple. Relative luminance 0.429; OKLCH L 77.0% C 0.137 H 318.5°. Best body text is #000000 at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#D997EC
RGBrgb(217, 151, 236)
HSLhsl(287, 69%, 76%)
HSVhsv(287, 36%, 93%)
CMYKcmyk(8.1%, 36%, 0%, 7.5%)
CIE-LABlab(71.52, 38.98, -33.08)
CIE-LCHlch(71.52, 51.12, 319.68°)
OKLaboklab(77.01% 0.1025 -0.0907)
OKLCHoklch(77.01% 0.137 318.5)
XYZxyz(54.8201, 42.9425, 84.7416)
Luminance0.4294 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D997EC #AAEC97
analogous
#AE97EC #D997EC #EC97D4
triadic
#D997EC #ECD997 #97ECD9
tetradic
#D997EC #ECAE97 #AAEC97 #97D4EC
square
#D997EC #ECAE97 #AAEC97 #97D4EC
split-complementary
#D997EC #D4EC97 #97ECAE
monochromatic
#B330D9 #C663E3 #D997EC #ECCBF5 #F6E5FA

Accessibility & contrast

On white

2.19
#D997EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.59
#D997EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D997EC
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D997EC#FFFFFF#000000##000000
##D997EC1.002.199.599.59
#FFFFFF2.191.0021.0021.00
#0000009.5921.001.001.00
##0000009.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BABEF
Deuteranopia (green-blind)
#9BB1E9
Tritanopia (blue-blind)
#D9A1B7
Achromatopsia (no color)
#AFAFAF

Design tokens & code

CSS
--color: #d997ec;
/* rgb */ color: rgb(217, 151, 236);
/* oklch */ color: oklch(77.0% 0.137 318.5);
Tailwind
colors: {
  custom: {
    50: '#e6b6f2',
    500: '#d997ec',
    950: '#000000',
  },
}
SCSS
$custom: #d997ec;
$custom-light: #e6b6f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d997ec",
  "rgb": {
    "r": 217,
    "g": 151,
    "b": 236
  },
  "hsl": {
    "h": 286.588,
    "s": 69.106,
    "l": 75.882
  },
  "oklch": {
    "l": 0.77007,
    "c": 0.13686,
    "h": 318.5
  },
  "luminance": 0.42941
}

Semantic roles & 50–950 ramp

primary
#D997EC
secondary
#DFF2D9
accent
#D1143F
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161117
muted
#848085

Preview Lab

Preview with #D997EC

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

Preview Lab → · Contrast checker → · Palette generator →

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