#D97AF7#D97AF7

#D97AF7 is a light, vivid purple. Relative luminance 0.354; OKLCH L 73.1% C 0.196 H 317.6°. Best body text is #000000 at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#D97AF7
RGBrgb(217, 122, 247)
HSLhsl(286, 89%, 72%)
HSVhsv(286, 51%, 97%)
CMYKcmyk(12.1%, 50.6%, 0%, 3.1%)
CIE-LABlab(66.05, 56.22, -47.65)
CIE-LCHlch(66.05, 73.69, 319.72°)
OKLaboklab(73.08% 0.1448 -0.1324)
OKLCHoklch(73.08% 0.196 317.6)
XYZxyz(52.3609, 35.3880, 92.0500)
Luminance0.3539 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97AF7 #98F77A
analogous
#9B7AF7 #D97AF7 #F77AD6
triadic
#D97AF7 #F7D97A #7AF7D9
tetradic
#D97AF7 #F79B7A #98F77A #7AD6F7
square
#D97AF7 #F79B7A #98F77A #7AD6F7
split-complementary
#D97AF7 #D6F77A #7AF79B
monochromatic
#B40EE9 #C940F4 #D97AF7 #E9B4FA #F7E2FD

Accessibility & contrast

On white

2.60
#D97AF7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.08
#D97AF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97AF7
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97AF7#FFFFFF#000000##000000
##D97AF71.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#619AFB
Deuteranopia (green-blind)
#7EA4F4
Tritanopia (blue-blind)
#D88CAD
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #d97af7;
/* rgb */ color: rgb(217, 122, 247);
/* oklch */ color: oklch(73.1% 0.196 317.6);
Tailwind
colors: {
  custom: {
    50: '#e7a3fa',
    500: '#d97af7',
    950: '#000000',
  },
}
SCSS
$custom: #d97af7;
$custom-light: #e7a3fa;
$custom-dark: #000000;
JSON
{
  "hex": "#d97af7",
  "rgb": {
    "r": 217,
    "g": 122,
    "b": 247
  },
  "hsl": {
    "h": 285.6,
    "s": 88.652,
    "l": 72.353
  },
  "oklch": {
    "l": 0.73077,
    "c": 0.19618,
    "h": 317.6
  },
  "luminance": 0.35386
}

Semantic roles & 50–950 ramp

primary
#D97AF7
secondary
#DDF5D6
accent
#E50037
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D97AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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