#D97FEA#D97FEA

#D97FEA is a light, vivid purple. Relative luminance 0.359; OKLCH L 73.2% C 0.175 H 321.1°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#D97FEA
RGBrgb(217, 127, 234)
HSLhsl(290, 72%, 71%)
HSVhsv(290, 46%, 92%)
CMYKcmyk(7.3%, 45.7%, 0%, 8.2%)
CIE-LABlab(66.42, 51.17, -39.90)
CIE-LCHlch(66.42, 64.89, 322.06°)
OKLaboklab(73.16% 0.1363 -0.11)
OKLCHoklch(73.16% 0.175 321.1)
XYZxyz(51.0542, 35.8730, 82.0608)
Luminance0.3587 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97FEA #90EA7F
analogous
#A37FEA #D97FEA #EA7FC5
triadic
#D97FEA #EAD97F #7FEAD9
tetradic
#D97FEA #EAA37F #90EA7F #7FC5EA
square
#D97FEA #EAA37F #90EA7F #7FC5EA
split-complementary
#D97FEA #C5EA7F #7FEAA3
monochromatic
#B222CD #C94AE1 #D97FEA #E9B4F3 #F7E5FB

Accessibility & contrast

On white

2.57
#D97FEA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.17
#D97FEA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97FEA
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97FEA#FFFFFF#000000##000000
##D97FEA1.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#709BEE
Deuteranopia (green-blind)
#89A5E7
Tritanopia (blue-blind)
#DB8DAA
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d97fea;
/* rgb */ color: rgb(217, 127, 234);
/* oklch */ color: oklch(73.2% 0.175 321.1);
Tailwind
colors: {
  custom: {
    50: '#e7a6f1',
    500: '#d97fea',
    950: '#000000',
  },
}
SCSS
$custom: #d97fea;
$custom-light: #e7a6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#d97fea",
  "rgb": {
    "r": 217,
    "g": 127,
    "b": 234
  },
  "hsl": {
    "h": 290.467,
    "s": 71.812,
    "l": 70.784
  },
  "oklch": {
    "l": 0.73159,
    "c": 0.17514,
    "h": 321.1
  },
  "luminance": 0.35871
}

Semantic roles & 50–950 ramp

primary
#D97FEA
secondary
#D9F1D4
accent
#D41230
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#161017
muted
#847F85

Preview Lab

Preview with #D97FEA

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

Preview Lab → · Contrast checker → · Palette generator →

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