#D97AF9#D97AF9

#D97AF9 is a light, vivid purple. Relative luminance 0.355; OKLCH L 73.2% C 0.198 H 317.0°. Best body text is #000000 at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#D97AF9
RGBrgb(217, 122, 249)
HSLhsl(285, 91%, 73%)
HSVhsv(285, 51%, 98%)
CMYKcmyk(12.9%, 51%, 0%, 2.4%)
CIE-LABlab(66.15, 56.62, -48.59)
CIE-LCHlch(66.15, 74.61, 319.36°)
OKLaboklab(73.18% 0.145 -0.1351)
OKLCHoklch(73.18% 0.198 317)
XYZxyz(52.6712, 35.5121, 93.6841)
Luminance0.3551 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97AF9 #9AF97A
analogous
#997AF9 #D97AF9 #F97AD9
triadic
#D97AF9 #F9D97A #7AF9D9
tetradic
#D97AF9 #F9997A #9AF97A #7AD9F9
square
#D97AF9 #F9997A #9AF97A #7AD9F9
split-complementary
#D97AF9 #D9F97A #7AF999
monochromatic
#B50BEE #C83FF6 #D97AF9 #EAB5FC #F7E2FE

Accessibility & contrast

On white

2.59
#D97AF9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.10
#D97AF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97AF9
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97AF9#FFFFFF#000000##000000
##D97AF91.002.598.108.10
#FFFFFF2.591.0021.0021.00
#0000008.1021.001.001.00
##0000008.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#609BFD
Deuteranopia (green-blind)
#7DA4F6
Tritanopia (blue-blind)
#D88DAE
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d97af9;
/* rgb */ color: rgb(217, 122, 249);
/* oklch */ color: oklch(73.2% 0.198 317.0);
Tailwind
colors: {
  custom: {
    50: '#e7a4fc',
    500: '#d97af9',
    950: '#000000',
  },
}
SCSS
$custom: #d97af9;
$custom-light: #e7a4fc;
$custom-dark: #000000;
JSON
{
  "hex": "#d97af9",
  "rgb": {
    "r": 217,
    "g": 122,
    "b": 249
  },
  "hsl": {
    "h": 284.882,
    "s": 91.367,
    "l": 72.745
  },
  "oklch": {
    "l": 0.73179,
    "c": 0.1982,
    "h": 317
  },
  "luminance": 0.3551
}

Semantic roles & 50–950 ramp

primary
#D97AF9
secondary
#DDF6D5
accent
#E6003A
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D97AF9

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

Preview Lab → · Contrast checker → · Palette generator →

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