#D97CEA#D97CEA

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

Color values

HEX#D97CEA
RGBrgb(217, 124, 234)
HSLhsl(291, 72%, 70%)
HSVhsv(291, 47%, 92%)
CMYKcmyk(7.3%, 47%, 0%, 8.2%)
CIE-LABlab(65.83, 52.70, -40.82)
CIE-LCHlch(65.83, 66.66, 322.24°)
OKLaboklab(72.72% 0.1404 -0.1127)
OKLCHoklch(72.72% 0.18 321.3)
XYZxyz(50.6725, 35.1096, 81.9336)
Luminance0.3511 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97CEA #8DEA7C
analogous
#A27CEA #D97CEA #EA7CC4
triadic
#D97CEA #EAD97C #7CEAD9
tetradic
#D97CEA #EAA27C #8DEA7C #7CC4EA
square
#D97CEA #EAA27C #8DEA7C #7CC4EA
split-complementary
#D97CEA #C4EA7C #7CEAA2
monochromatic
#B121CB #CA47E2 #D97CEA #E8B1F2 #F7E5FB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D97CEA#FFFFFF#000000##000000
##D97CEA1.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)
#6C99EE
Deuteranopia (green-blind)
#87A4E7
Tritanopia (blue-blind)
#DB8AA8
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #d97cea;
/* rgb */ color: rgb(217, 124, 234);
/* oklch */ color: oklch(72.7% 0.180 321.3);
Tailwind
colors: {
  custom: {
    50: '#e7a5f1',
    500: '#d97cea',
    950: '#000000',
  },
}
SCSS
$custom: #d97cea;
$custom-light: #e7a5f1;
$custom-dark: #000000;
JSON
{
  "hex": "#d97cea",
  "rgb": {
    "r": 217,
    "g": 124,
    "b": 234
  },
  "hsl": {
    "h": 290.727,
    "s": 72.368,
    "l": 70.196
  },
  "oklch": {
    "l": 0.72721,
    "c": 0.18003,
    "h": 321.3
  },
  "luminance": 0.35108
}

Semantic roles & 50–950 ramp

primary
#D97CEA
secondary
#D6F0D2
accent
#D4112F
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D97CEA

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

Preview Lab → · Contrast checker → · Palette generator →

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