#D97AFC#D97AFC

#D97AFC is a light, highly saturated purple. Relative luminance 0.357; OKLCH L 73.3% C 0.201 H 316.2°. Best body text is #000000 at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#D97AFC
RGBrgb(217, 122, 252)
HSLhsl(284, 96%, 73%)
HSVhsv(284, 52%, 99%)
CMYKcmyk(13.9%, 51.6%, 0%, 1.2%)
CIE-LABlab(66.29, 57.21, -50.01)
CIE-LCHlch(66.29, 75.99, 318.84°)
OKLaboklab(73.33% 0.1453 -0.1392)
OKLCHoklch(73.33% 0.201 316.2)
XYZxyz(53.1429, 35.7008, 96.1681)
Luminance0.3570 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97AFC #9DFC7A
analogous
#987AFC #D97AFC #FC7ADE
triadic
#D97AFC #FCD97A #7AFCD9
tetradic
#D97AFC #FC987A #9DFC7A #7ADEFC
square
#D97AFC #FC987A #9DFC7A #7ADEFC
split-complementary
#D97AFC #DEFC7A #7AFC98
monochromatic
#B506F6 #C83EFB #D97AFC #EAB6FD #F6E1FE

Accessibility & contrast

On white

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

On black

8.14
#D97AFC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97AFC
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97AFC#FFFFFF#000000##000000
##D97AFC1.002.588.148.14
#FFFFFF2.581.0021.0021.00
#0000008.1421.001.001.00
##0000008.1421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d97afc;
/* rgb */ color: rgb(217, 122, 252);
/* oklch */ color: oklch(73.3% 0.201 316.2);
Tailwind
colors: {
  custom: {
    50: '#e7a4fe',
    500: '#d97afc',
    950: '#000000',
  },
}
SCSS
$custom: #d97afc;
$custom-light: #e7a4fe;
$custom-dark: #000000;
JSON
{
  "hex": "#d97afc",
  "rgb": {
    "r": 217,
    "g": 122,
    "b": 252
  },
  "hsl": {
    "h": 283.846,
    "s": 95.588,
    "l": 73.333
  },
  "oklch": {
    "l": 0.73333,
    "c": 0.20124,
    "h": 316.2
  },
  "luminance": 0.35699
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D97AFC

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

Preview Lab → · Contrast checker → · Palette generator →

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