#D997E2#D997E2

#D997E2 is a light, vivid purple. Relative luminance 0.424; OKLCH L 76.6% C 0.126 H 322.5°. Best body text is #000000 at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#D997E2
RGBrgb(217, 151, 226)
HSLhsl(293, 56%, 74%)
HSVhsv(293, 33%, 89%)
CMYKcmyk(4%, 33.2%, 0%, 11.4%)
CIE-LABlab(71.13, 37.03, -28.19)
CIE-LCHlch(71.13, 46.55, 322.72°)
OKLaboklab(76.59% 0.1001 -0.0768)
OKLCHoklch(76.59% 0.126 322.5)
XYZxyz(53.4078, 42.3776, 77.3031)
Luminance0.4238 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D997E2 #A0E297
analogous
#B497E2 #D997E2 #E297C6
triadic
#D997E2 #E2D997 #97E2D9
tetradic
#D997E2 #E2B497 #A0E297 #97C6E2
square
#D997E2 #E2B497 #A0E297 #97C6E2
split-complementary
#D997E2 #C6E297 #97E2B4
monochromatic
#B638C7 #C867D5 #D997E2 #EAC7EF #F6E7F8

Accessibility & contrast

On white

2.22
#D997E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.48
#D997E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D997E2
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D997E2#FFFFFF#000000##000000
##D997E21.002.229.489.48
#FFFFFF2.221.0021.0021.00
#0000009.4821.001.001.00
##0000009.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8FA9E5
Deuteranopia (green-blind)
#9FB1E0
Tritanopia (blue-blind)
#DB9FB3
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #d997e2;
/* rgb */ color: rgb(217, 151, 226);
/* oklch */ color: oklch(76.6% 0.126 322.5);
Tailwind
colors: {
  custom: {
    50: '#e6b6eb',
    500: '#d997e2',
    950: '#000000',
  },
}
SCSS
$custom: #d997e2;
$custom-light: #e6b6eb;
$custom-dark: #000000;
JSON
{
  "hex": "#d997e2",
  "rgb": {
    "r": 217,
    "g": 151,
    "b": 226
  },
  "hsl": {
    "h": 292.8,
    "s": 56.391,
    "l": 73.922
  },
  "oklch": {
    "l": 0.76589,
    "c": 0.12619,
    "h": 322.5
  },
  "luminance": 0.42376
}

Semantic roles & 50–950 ramp

primary
#D997E2
secondary
#DEF0DB
accent
#C42235
background
#FEFBFE
surface
#FCF6FD
border
#D5D0D5
text
#161116
muted
#848084

Preview Lab

Preview with #D997E2

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

Preview Lab → · Contrast checker → · Palette generator →

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