#D97BEE#D97BEE

#D97BEE is a light, vivid purple. Relative luminance 0.351; OKLCH L 72.8% C 0.186 H 320.1°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#D97BEE
RGBrgb(217, 123, 238)
HSLhsl(289, 77%, 71%)
HSVhsv(289, 48%, 93%)
CMYKcmyk(8.8%, 48.3%, 0%, 6.7%)
CIE-LABlab(65.82, 53.97, -43.05)
CIE-LCHlch(65.82, 69.03, 321.42°)
OKLaboklab(72.77% 0.1424 -0.1191)
OKLCHoklch(72.77% 0.186 320.1)
XYZxyz(51.1289, 35.0927, 84.9527)
Luminance0.3509 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97BEE #90EE7B
analogous
#9F7BEE #D97BEE #EE7BCA
triadic
#D97BEE #EED97B #7BEED9
tetradic
#D97BEE #EE9F7B #90EE7B #7BCAEE
square
#D97BEE #EE9F7B #90EE7B #7BCAEE
split-complementary
#D97BEE #CAEE7B #7BEE9F
monochromatic
#B21BD3 #C945E7 #D97BEE #E9B1F5 #F7E4FC

Accessibility & contrast

On white

2.62
#D97BEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.02
#D97BEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97BEE
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97BEE#FFFFFF#000000##000000
##D97BEE1.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6899F2
Deuteranopia (green-blind)
#84A3EB
Tritanopia (blue-blind)
#DA8AAA
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #d97bee;
/* rgb */ color: rgb(217, 123, 238);
/* oklch */ color: oklch(72.8% 0.186 320.1);
Tailwind
colors: {
  custom: {
    50: '#e7a4f4',
    500: '#d97bee',
    950: '#000000',
  },
}
SCSS
$custom: #d97bee;
$custom-light: #e7a4f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d97bee",
  "rgb": {
    "r": 217,
    "g": 123,
    "b": 238
  },
  "hsl": {
    "h": 289.043,
    "s": 77.181,
    "l": 70.784
  },
  "oklch": {
    "l": 0.7277,
    "c": 0.1856,
    "h": 320.1
  },
  "luminance": 0.35091
}

Semantic roles & 50–950 ramp

primary
#D97BEE
secondary
#D9F2D3
accent
#D90C32
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D97BEE

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

Preview Lab → · Contrast checker → · Palette generator →

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