#D97AFF#D97AFF

#D97AFF is a light, highly saturated purple. Relative luminance 0.359; OKLCH L 73.5% C 0.204 H 315.4°. Best body text is #000000 at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#D97AFF
RGBrgb(217, 122, 255)
HSLhsl(283, 100%, 74%)
HSVhsv(283, 52%, 100%)
CMYKcmyk(14.9%, 52.2%, 0%, 0%)
CIE-LABlab(66.44, 57.81, -51.42)
CIE-LCHlch(66.44, 77.37, 318.35°)
OKLaboklab(73.49% 0.1456 -0.1433)
OKLCHoklch(73.49% 0.204 315.4)
XYZxyz(53.6220, 35.8924, 98.6916)
Luminance0.3589 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97AFF #A0FF7A
analogous
#977AFF #D97AFF #FF7AE3
triadic
#D97AFF #FFD97A #7AFFD9
tetradic
#D97AFF #FF977A #A0FF7A #7AE3FF
square
#D97AFF #FF977A #A0FF7A #7AE3FF
split-complementary
#D97AFF #E3FF7A #7AFF97
monochromatic
#B600FF #C83DFF #D97AFF #EAB7FF #F6E0FF

Accessibility & contrast

On white

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

On black

8.18
#D97AFF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97AFF
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97AFF#FFFFFF#000000##000000
##D97AFF1.002.578.188.18
#FFFFFF2.571.0021.0021.00
#0000008.1821.001.001.00
##0000008.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B9CFF
Deuteranopia (green-blind)
#7AA4FB
Tritanopia (blue-blind)
#D78FB1
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d97aff;
/* rgb */ color: rgb(217, 122, 255);
/* oklch */ color: oklch(73.5% 0.204 315.4);
Tailwind
colors: {
  custom: {
    50: '#e7a4ff',
    500: '#d97aff',
    950: '#000000',
  },
}
SCSS
$custom: #d97aff;
$custom-light: #e7a4ff;
$custom-dark: #000000;
JSON
{
  "hex": "#d97aff",
  "rgb": {
    "r": 217,
    "g": 122,
    "b": 255
  },
  "hsl": {
    "h": 282.857,
    "s": 100,
    "l": 73.922
  },
  "oklch": {
    "l": 0.73489,
    "c": 0.20429,
    "h": 315.4
  },
  "luminance": 0.35891
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D97AFF

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

Preview Lab → · Contrast checker → · Palette generator →

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