#D97FEE#D97FEE

#D97FEE is a light, vivid purple. Relative luminance 0.361; OKLCH L 73.3% C 0.179 H 319.8°. Best body text is #000000 at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#D97FEE
RGBrgb(217, 127, 238)
HSLhsl(289, 77%, 72%)
HSVhsv(289, 47%, 93%)
CMYKcmyk(8.8%, 46.6%, 0%, 6.7%)
CIE-LABlab(66.60, 51.94, -41.83)
CIE-LCHlch(66.60, 66.69, 321.16°)
OKLaboklab(73.35% 0.1369 -0.1156)
OKLCHoklch(73.35% 0.179 319.8)
XYZxyz(51.6353, 36.1054, 85.1214)
Luminance0.3610 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97FEE #94EE7F
analogous
#A27FEE #D97FEE #EE7FCC
triadic
#D97FEE #EED97F #7FEED9
tetradic
#D97FEE #EEA27F #94EE7F #7FCCEE
square
#D97FEE #EEA27F #94EE7F #7FCCEE
split-complementary
#D97FEE #CCEE7F #7FEEA2
monochromatic
#B31CD6 #C949E7 #D97FEE #E9B5F5 #F7E4FB

Accessibility & contrast

On white

2.55
#D97FEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.22
#D97FEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97FEE
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97FEE#FFFFFF#000000##000000
##D97FEE1.002.558.228.22
#FFFFFF2.551.0021.0021.00
#0000008.2221.001.001.00
##0000008.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6D9CF2
Deuteranopia (green-blind)
#87A5EB
Tritanopia (blue-blind)
#DA8EAB
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d97fee;
/* rgb */ color: rgb(217, 127, 238);
/* oklch */ color: oklch(73.3% 0.179 319.8);
Tailwind
colors: {
  custom: {
    50: '#e7a7f4',
    500: '#d97fee',
    950: '#000000',
  },
}
SCSS
$custom: #d97fee;
$custom-light: #e7a7f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d97fee",
  "rgb": {
    "r": 217,
    "g": 127,
    "b": 238
  },
  "hsl": {
    "h": 288.649,
    "s": 76.552,
    "l": 71.569
  },
  "oklch": {
    "l": 0.73349,
    "c": 0.17916,
    "h": 319.8
  },
  "luminance": 0.36104
}

Semantic roles & 50–950 ramp

primary
#D97FEE
secondary
#DCF3D6
accent
#D90D33
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#161017
muted
#847F85

Preview Lab

Preview with #D97FEE

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

Preview Lab → · Contrast checker → · Palette generator →

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