#D97AFD#D97AFD

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

Color values

HEX#D97AFD
RGBrgb(217, 122, 253)
HSLhsl(284, 97%, 74%)
HSVhsv(284, 52%, 99%)
CMYKcmyk(14.2%, 51.8%, 0%, 0.8%)
CIE-LABlab(66.34, 57.41, -50.48)
CIE-LCHlch(66.34, 76.45, 318.68°)
OKLaboklab(73.39% 0.1454 -0.1406)
OKLCHoklch(73.39% 0.202 316)
XYZxyz(53.3017, 35.7643, 97.0049)
Luminance0.3576 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97AFD #9EFD7A
analogous
#977AFD #D97AFD #FD7AE0
triadic
#D97AFD #FDD97A #7AFDD9
tetradic
#D97AFD #FD977A #9EFD7A #7AE0FD
square
#D97AFD #FD977A #9EFD7A #7AE0FD
split-complementary
#D97AFD #E0FD7A #7AFD97
monochromatic
#B504F9 #C83EFC #D97AFD #EAB6FE #F6E1FF

Accessibility & contrast

On white

2.58
#D97AFD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.15
#D97AFD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97AFD
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97AFD#FFFFFF#000000##000000
##D97AFD1.002.588.158.15
#FFFFFF2.581.0021.0021.00
#0000008.1521.001.001.00
##0000008.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D9BFF
Deuteranopia (green-blind)
#7BA4FA
Tritanopia (blue-blind)
#D78EB0
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d97afd;
/* rgb */ color: rgb(217, 122, 253);
/* oklch */ color: oklch(73.4% 0.202 316.0);
Tailwind
colors: {
  custom: {
    50: '#e7a4fe',
    500: '#d97afd',
    950: '#000000',
  },
}
SCSS
$custom: #d97afd;
$custom-light: #e7a4fe;
$custom-dark: #000000;
JSON
{
  "hex": "#d97afd",
  "rgb": {
    "r": 217,
    "g": 122,
    "b": 253
  },
  "hsl": {
    "h": 283.511,
    "s": 97.037,
    "l": 73.529
  },
  "oklch": {
    "l": 0.73385,
    "c": 0.20225,
    "h": 316
  },
  "luminance": 0.35763
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D97AFD

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

Preview Lab → · Contrast checker → · Palette generator →

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