#D997DF#D997DF

#D997DF is a light, vivid purple. Relative luminance 0.422; OKLCH L 76.5% C 0.123 H 323.8°. Best body text is #000000 at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#D997DF
RGBrgb(217, 151, 223)
HSLhsl(295, 53%, 73%)
HSVhsv(295, 32%, 87%)
CMYKcmyk(2.7%, 32.3%, 0%, 12.5%)
CIE-LABlab(71.02, 36.46, -26.72)
CIE-LCHlch(71.02, 45.20, 323.77°)
OKLaboklab(76.47% 0.0993 -0.0727)
OKLCHoklch(76.47% 0.123 323.8)
XYZxyz(52.9997, 42.2144, 75.1541)
Luminance0.4221 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D997DF #9DDF97
analogous
#B597DF #D997DF #DF97C1
triadic
#D997DF #DFD997 #97DFD9
tetradic
#D997DF #DFB597 #9DDF97 #97C1DF
square
#D997DF #DFB597 #9DDF97 #97C1DF
split-complementary
#D997DF #C1DF97 #97DFB5
monochromatic
#B53BC0 #C868D1 #D997DF #EAC6ED #F6E8F8

Accessibility & contrast

On white

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

On black

9.44
#D997DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D997DF
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D997DF#FFFFFF#000000##000000
##D997DF1.002.229.449.44
#FFFFFF2.221.0021.0021.00
#0000009.4421.001.001.00
##0000009.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#90A9E2
Deuteranopia (green-blind)
#A0B1DD
Tritanopia (blue-blind)
#DC9EB1
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #d997df;
/* rgb */ color: rgb(217, 151, 223);
/* oklch */ color: oklch(76.5% 0.123 323.8);
Tailwind
colors: {
  custom: {
    50: '#e5b6e9',
    500: '#d997df',
    950: '#000000',
  },
}
SCSS
$custom: #d997df;
$custom-light: #e5b6e9;
$custom-dark: #000000;
JSON
{
  "hex": "#d997df",
  "rgb": {
    "r": 217,
    "g": 151,
    "b": 223
  },
  "hsl": {
    "h": 295,
    "s": 52.941,
    "l": 73.333
  },
  "oklch": {
    "l": 0.76467,
    "c": 0.12308,
    "h": 323.8
  },
  "luminance": 0.42213
}

Semantic roles & 50–950 ramp

primary
#D997DF
secondary
#DEEFDC
accent
#C02532
background
#FEFBFE
surface
#FCF6FC
border
#D5D0D5
text
#161116
muted
#848084

Preview Lab

Preview with #D997DF

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

Preview Lab → · Contrast checker → · Palette generator →

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