#D97AF6#D97AF6

#D97AF6 is a light, vivid purple. Relative luminance 0.353; OKLCH L 73.0% C 0.195 H 317.8°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#D97AF6
RGBrgb(217, 122, 246)
HSLhsl(286, 87%, 72%)
HSVhsv(286, 50%, 96%)
CMYKcmyk(11.8%, 50.4%, 0%, 3.5%)
CIE-LABlab(66.00, 56.02, -47.17)
CIE-LCHlch(66.00, 73.24, 319.90°)
OKLaboklab(73.03% 0.1447 -0.131)
OKLCHoklch(73.03% 0.195 317.8)
XYZxyz(52.2070, 35.3264, 91.2395)
Luminance0.3533 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97AF6 #97F67A
analogous
#9B7AF6 #D97AF6 #F67AD5
triadic
#D97AF6 #F6D97A #7AF6D9
tetradic
#D97AF6 #F69B7A #97F67A #7AD5F6
square
#D97AF6 #F69B7A #97F67A #7AD5F6
split-complementary
#D97AF6 #D5F67A #7AF69B
monochromatic
#B410E6 #C941F2 #D97AF6 #E9B3FA #F7E2FD

Accessibility & contrast

On white

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

On black

8.07
#D97AF6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97AF6
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97AF6#FFFFFF#000000##000000
##D97AF61.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#629AFA
Deuteranopia (green-blind)
#7FA4F3
Tritanopia (blue-blind)
#D98CAD
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #d97af6;
/* rgb */ color: rgb(217, 122, 246);
/* oklch */ color: oklch(73.0% 0.195 317.8);
Tailwind
colors: {
  custom: {
    50: '#e7a3f9',
    500: '#d97af6',
    950: '#000000',
  },
}
SCSS
$custom: #d97af6;
$custom-light: #e7a3f9;
$custom-dark: #000000;
JSON
{
  "hex": "#d97af6",
  "rgb": {
    "r": 217,
    "g": 122,
    "b": 246
  },
  "hsl": {
    "h": 285.968,
    "s": 87.324,
    "l": 72.157
  },
  "oklch": {
    "l": 0.73026,
    "c": 0.19518,
    "h": 317.8
  },
  "luminance": 0.35325
}

Semantic roles & 50–950 ramp

primary
#D97AF6
secondary
#DDF5D6
accent
#E40237
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D97AF6

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

Preview Lab → · Contrast checker → · Palette generator →

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