#D97AF0#D97AF0

#D97AF0 is a light, vivid purple. Relative luminance 0.350; OKLCH L 72.7% C 0.189 H 319.6°. Best body text is #000000 at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#D97AF0
RGBrgb(217, 122, 240)
HSLhsl(288, 80%, 71%)
HSVhsv(288, 49%, 94%)
CMYKcmyk(9.6%, 49.2%, 0%, 5.9%)
CIE-LABlab(65.72, 54.85, -44.31)
CIE-LCHlch(65.72, 70.52, 321.07°)
OKLaboklab(72.73% 0.144 -0.1227)
OKLCHoklch(72.73% 0.189 319.6)
XYZxyz(51.3010, 34.9640, 86.4676)
Luminance0.3496 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97AF0 #91F07A
analogous
#9E7AF0 #D97AF0 #F07ACC
triadic
#D97AF0 #F0D97A #7AF0D9
tetradic
#D97AF0 #F09E7A #91F07A #7ACCF0
square
#D97AF0 #F09E7A #91F07A #7ACCF0
split-complementary
#D97AF0 #CCF07A #7AF09E
monochromatic
#B218D7 #C943EA #D97AF0 #E9B1F6 #F7E4FC

Accessibility & contrast

On white

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

On black

7.99
#D97AF0 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97AF0
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97AF0#FFFFFF#000000##000000
##D97AF01.002.637.997.99
#FFFFFF2.631.0021.0021.00
#0000007.9921.001.001.00
##0000007.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6699F4
Deuteranopia (green-blind)
#82A3ED
Tritanopia (blue-blind)
#DA8AAA
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #d97af0;
/* rgb */ color: rgb(217, 122, 240);
/* oklch */ color: oklch(72.7% 0.189 319.6);
Tailwind
colors: {
  custom: {
    50: '#e7a3f5',
    500: '#d97af0',
    950: '#000000',
  },
}
SCSS
$custom: #d97af0;
$custom-light: #e7a3f5;
$custom-dark: #000000;
JSON
{
  "hex": "#d97af0",
  "rgb": {
    "r": 217,
    "g": 122,
    "b": 240
  },
  "hsl": {
    "h": 288.305,
    "s": 79.73,
    "l": 70.98
  },
  "oklch": {
    "l": 0.72726,
    "c": 0.18918,
    "h": 319.6
  },
  "luminance": 0.34962
}

Semantic roles & 50–950 ramp

primary
#D97AF0
secondary
#D9F3D3
accent
#DC0933
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#160F17
muted
#847F85

Preview Lab

Preview with #D97AF0

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

Preview Lab → · Contrast checker → · Palette generator →

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