#D97AFE#D97AFE

#D97AFE is a light, highly saturated purple. Relative luminance 0.358; OKLCH L 73.4% C 0.203 H 315.7°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#D97AFE
RGBrgb(217, 122, 254)
HSLhsl(283, 99%, 74%)
HSVhsv(283, 52%, 100%)
CMYKcmyk(14.6%, 52%, 0%, 0.4%)
CIE-LABlab(66.39, 57.61, -50.95)
CIE-LCHlch(66.39, 76.91, 318.51°)
OKLaboklab(73.44% 0.1455 -0.142)
OKLCHoklch(73.44% 0.203 315.7)
XYZxyz(53.4615, 35.8282, 97.8461)
Luminance0.3583 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97AFE #9FFE7A
analogous
#977AFE #D97AFE #FE7AE1
triadic
#D97AFE #FED97A #7AFED9
tetradic
#D97AFE #FE977A #9FFE7A #7AE1FE
square
#D97AFE #FE977A #9FFE7A #7AE1FE
split-complementary
#D97AFE #E1FE7A #7AFE97
monochromatic
#B602FC #C83DFE #D97AFE #EAB7FE #F6E1FF

Accessibility & contrast

On white

2.57
#D97AFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.17
#D97AFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97AFE
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97AFE#FFFFFF#000000##000000
##D97AFE1.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C9CFF
Deuteranopia (green-blind)
#7BA4FB
Tritanopia (blue-blind)
#D78FB1
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d97afe;
/* rgb */ color: rgb(217, 122, 254);
/* oklch */ color: oklch(73.4% 0.203 315.7);
Tailwind
colors: {
  custom: {
    50: '#e7a4ff',
    500: '#d97afe',
    950: '#000000',
  },
}
SCSS
$custom: #d97afe;
$custom-light: #e7a4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d97afe",
  "rgb": {
    "r": 217,
    "g": 122,
    "b": 254
  },
  "hsl": {
    "h": 283.182,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.73437,
    "c": 0.20327,
    "h": 315.7
  },
  "luminance": 0.35827
}

Semantic roles & 50–950 ramp

primary
#D97AFE
secondary
#DEF7D4
accent
#E60040
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F18
muted
#847F86

Preview Lab

Preview with #D97AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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