#D97AF8#D97AF8

#D97AF8 is a light, vivid purple. Relative luminance 0.354; OKLCH L 73.1% C 0.197 H 317.3°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#D97AF8
RGBrgb(217, 122, 248)
HSLhsl(285, 90%, 73%)
HSVhsv(285, 51%, 97%)
CMYKcmyk(12.5%, 50.8%, 0%, 2.7%)
CIE-LABlab(66.10, 56.42, -48.12)
CIE-LCHlch(66.10, 74.15, 319.54°)
OKLaboklab(73.13% 0.1449 -0.1337)
OKLCHoklch(73.13% 0.197 317.3)
XYZxyz(52.5157, 35.4499, 92.8649)
Luminance0.3545 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97AF8 #99F87A
analogous
#9A7AF8 #D97AF8 #F87AD8
triadic
#D97AF8 #F8D97A #7AF8D9
tetradic
#D97AF8 #F89A7A #99F87A #7AD8F8
square
#D97AF8 #F89A7A #99F87A #7AD8F8
split-complementary
#D97AF8 #D8F87A #7AF89A
monochromatic
#B40CEB #C840F5 #D97AF8 #EAB4FB #F7E2FD

Accessibility & contrast

On white

2.60
#D97AF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.09
#D97AF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97AF8
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97AF8#FFFFFF#000000##000000
##D97AF81.002.608.098.09
#FFFFFF2.601.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d97af8;
/* rgb */ color: rgb(217, 122, 248);
/* oklch */ color: oklch(73.1% 0.197 317.3);
Tailwind
colors: {
  custom: {
    50: '#e7a3fb',
    500: '#d97af8',
    950: '#000000',
  },
}
SCSS
$custom: #d97af8;
$custom-light: #e7a3fb;
$custom-dark: #000000;
JSON
{
  "hex": "#d97af8",
  "rgb": {
    "r": 217,
    "g": 122,
    "b": 248
  },
  "hsl": {
    "h": 285.238,
    "s": 90,
    "l": 72.549
  },
  "oklch": {
    "l": 0.73128,
    "c": 0.19719,
    "h": 317.3
  },
  "luminance": 0.35448
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D97AF8

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

Preview Lab → · Contrast checker → · Palette generator →

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