#D97AFA#D97AFA

#D97AFA is a light, vivid purple. Relative luminance 0.356; OKLCH L 73.2% C 0.199 H 316.8°. Best body text is #000000 at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#D97AFA
RGBrgb(217, 122, 250)
HSLhsl(285, 93%, 73%)
HSVhsv(285, 51%, 98%)
CMYKcmyk(13.2%, 51.2%, 0%, 2%)
CIE-LABlab(66.19, 56.81, -49.07)
CIE-LCHlch(66.19, 75.07, 319.18°)
OKLaboklab(73.23% 0.1451 -0.1365)
OKLCHoklch(73.23% 0.199 316.8)
XYZxyz(52.8276, 35.5746, 94.5078)
Luminance0.3557 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97AFA #9BFA7A
analogous
#997AFA #D97AFA #FA7ADB
triadic
#D97AFA #FAD97A #7AFAD9
tetradic
#D97AFA #FA997A #9BFA7A #7ADBFA
square
#D97AFA #FA997A #9BFA7A #7ADBFA
split-complementary
#D97AFA #DBFA7A #7AFA99
monochromatic
#B509F1 #C83FF8 #D97AFA #EAB5FC #F7E2FE

Accessibility & contrast

On white

2.59
#D97AFA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.11
#D97AFA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97AFA
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97AFA#FFFFFF#000000##000000
##D97AFA1.002.598.118.11
#FFFFFF2.591.0021.0021.00
#0000008.1121.001.001.00
##0000008.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5F9BFE
Deuteranopia (green-blind)
#7DA4F7
Tritanopia (blue-blind)
#D88DAF
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d97afa;
/* rgb */ color: rgb(217, 122, 250);
/* oklch */ color: oklch(73.2% 0.199 316.8);
Tailwind
colors: {
  custom: {
    50: '#e7a4fc',
    500: '#d97afa',
    950: '#000000',
  },
}
SCSS
$custom: #d97afa;
$custom-light: #e7a4fc;
$custom-dark: #000000;
JSON
{
  "hex": "#d97afa",
  "rgb": {
    "r": 217,
    "g": 122,
    "b": 250
  },
  "hsl": {
    "h": 284.531,
    "s": 92.754,
    "l": 72.941
  },
  "oklch": {
    "l": 0.7323,
    "c": 0.19921,
    "h": 316.8
  },
  "luminance": 0.35573
}

Semantic roles & 50–950 ramp

primary
#D97AFA
secondary
#DDF6D5
accent
#E6003B
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D97AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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