#D97AF2#D97AF2

#D97AF2 is a light, vivid purple. Relative luminance 0.351; OKLCH L 72.8% C 0.191 H 319.0°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#D97AF2
RGBrgb(217, 122, 242)
HSLhsl(288, 82%, 71%)
HSVhsv(288, 50%, 95%)
CMYKcmyk(10.3%, 49.6%, 0%, 5.1%)
CIE-LABlab(65.81, 55.24, -45.27)
CIE-LCHlch(65.81, 71.42, 320.67°)
OKLaboklab(72.82% 0.1442 -0.1255)
OKLCHoklch(72.82% 0.191 319)
XYZxyz(51.5997, 35.0835, 88.0409)
Luminance0.3508 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97AF2 #93F27A
analogous
#9D7AF2 #D97AF2 #F27ACF
triadic
#D97AF2 #F2D97A #7AF2D9
tetradic
#D97AF2 #F29D7A #93F27A #7ACFF2
square
#D97AF2 #F29D7A #93F27A #7ACFF2
split-complementary
#D97AF2 #CFF27A #7AF29D
monochromatic
#B316DC #C942ED #D97AF2 #E9B2F7 #F7E3FC

Accessibility & contrast

On white

2.62
#D97AF2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.02
#D97AF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97AF2
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97AF2#FFFFFF#000000##000000
##D97AF21.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#6499F6
Deuteranopia (green-blind)
#81A3EF
Tritanopia (blue-blind)
#DA8BAB
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #d97af2;
/* rgb */ color: rgb(217, 122, 242);
/* oklch */ color: oklch(72.8% 0.191 319.0);
Tailwind
colors: {
  custom: {
    50: '#e7a3f7',
    500: '#d97af2',
    950: '#000000',
  },
}
SCSS
$custom: #d97af2;
$custom-light: #e7a3f7;
$custom-dark: #000000;
JSON
{
  "hex": "#d97af2",
  "rgb": {
    "r": 217,
    "g": 122,
    "b": 242
  },
  "hsl": {
    "h": 287.5,
    "s": 82.192,
    "l": 71.373
  },
  "oklch": {
    "l": 0.72825,
    "c": 0.19116,
    "h": 319
  },
  "luminance": 0.35082
}

Semantic roles & 50–950 ramp

primary
#D97AF2
secondary
#DBF3D4
accent
#DF0734
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#160F17
muted
#847F85

Preview Lab

Preview with #D97AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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