#D97AEE#D97AEE

#D97AEE is a light, vivid purple. Relative luminance 0.348; OKLCH L 72.6% C 0.187 H 320.1°. Best body text is #000000 at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#D97AEE
RGBrgb(217, 122, 238)
HSLhsl(289, 77%, 71%)
HSVhsv(289, 49%, 93%)
CMYKcmyk(8.8%, 48.7%, 0%, 6.7%)
CIE-LABlab(65.63, 54.47, -43.35)
CIE-LCHlch(65.63, 69.61, 321.48°)
OKLaboklab(72.63% 0.1437 -0.1199)
OKLCHoklch(72.63% 0.187 320.1)
XYZxyz(51.0055, 34.8458, 84.9115)
Luminance0.3484 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97AEE #8FEE7A
analogous
#9F7AEE #D97AEE #EE7AC9
triadic
#D97AEE #EED97A #7AEED9
tetradic
#D97AEE #EE9F7A #8FEE7A #7AC9EE
square
#D97AEE #EE9F7A #8FEE7A #7AC9EE
split-complementary
#D97AEE #C9EE7A #7AEE9F
monochromatic
#B11BD3 #C944E7 #D97AEE #E9B0F5 #F7E4FC

Accessibility & contrast

On white

2.64
#D97AEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.97
#D97AEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97AEE
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97AEE#FFFFFF#000000##000000
##D97AEE1.002.647.977.97
#FFFFFF2.641.0021.0021.00
#0000007.9721.001.001.00
##0000007.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6799F2
Deuteranopia (green-blind)
#83A3EB
Tritanopia (blue-blind)
#DA8AA9
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #d97aee;
/* rgb */ color: rgb(217, 122, 238);
/* oklch */ color: oklch(72.6% 0.187 320.1);
Tailwind
colors: {
  custom: {
    50: '#e7a3f4',
    500: '#d97aee',
    950: '#000000',
  },
}
SCSS
$custom: #d97aee;
$custom-light: #e7a3f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d97aee",
  "rgb": {
    "r": 217,
    "g": 122,
    "b": 238
  },
  "hsl": {
    "h": 289.138,
    "s": 77.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.72628,
    "c": 0.18718,
    "h": 320.1
  },
  "luminance": 0.34844
}

Semantic roles & 50–950 ramp

primary
#D97AEE
secondary
#D8F2D2
accent
#DA0C31
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D97AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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