#D97AEF#D97AEF

#D97AEF is a light, vivid purple. Relative luminance 0.349; OKLCH L 72.7% C 0.188 H 319.8°. Best body text is #000000 at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#D97AEF
RGBrgb(217, 122, 239)
HSLhsl(289, 79%, 71%)
HSVhsv(289, 49%, 94%)
CMYKcmyk(9.2%, 49%, 0%, 6.3%)
CIE-LABlab(65.67, 54.66, -43.83)
CIE-LCHlch(65.67, 70.06, 321.27°)
OKLaboklab(72.68% 0.1438 -0.1213)
OKLCHoklch(72.68% 0.188 319.8)
XYZxyz(51.1528, 34.9047, 85.6874)
Luminance0.3490 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97AEF #90EF7A
analogous
#9E7AEF #D97AEF #EF7ACA
triadic
#D97AEF #EFD97A #7AEFD9
tetradic
#D97AEF #EF9E7A #90EF7A #7ACAEF
square
#D97AEF #EF9E7A #90EF7A #7ACAEF
split-complementary
#D97AEF #CAEF7A #7AEF9E
monochromatic
#B21AD5 #C943E8 #D97AEF #E9B1F6 #F7E4FC

Accessibility & contrast

On white

2.63
#D97AEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.98
#D97AEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97AEF
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97AEF#FFFFFF#000000##000000
##D97AEF1.002.637.987.98
#FFFFFF2.631.0021.0021.00
#0000007.9821.001.001.00
##0000007.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6699F3
Deuteranopia (green-blind)
#83A3EC
Tritanopia (blue-blind)
#DA8AAA
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #d97aef;
/* rgb */ color: rgb(217, 122, 239);
/* oklch */ color: oklch(72.7% 0.188 319.8);
Tailwind
colors: {
  custom: {
    50: '#e7a3f4',
    500: '#d97aef',
    950: '#000000',
  },
}
SCSS
$custom: #d97aef;
$custom-light: #e7a3f4;
$custom-dark: #000000;
JSON
{
  "hex": "#d97aef",
  "rgb": {
    "r": 217,
    "g": 122,
    "b": 239
  },
  "hsl": {
    "h": 288.718,
    "s": 78.523,
    "l": 70.784
  },
  "oklch": {
    "l": 0.72677,
    "c": 0.18818,
    "h": 319.8
  },
  "luminance": 0.34903
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D97AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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