#D97DF5#D97DF5

#D97DF5 is a light, vivid purple. Relative luminance 0.360; OKLCH L 73.4% C 0.189 H 317.9°. Best body text is #000000 at 8.20:1 contrast (WCAG AA passes).

Color values

HEX#D97DF5
RGBrgb(217, 125, 245)
HSLhsl(286, 86%, 73%)
HSVhsv(286, 49%, 96%)
CMYKcmyk(11.4%, 49%, 0%, 3.9%)
CIE-LABlab(66.53, 54.32, -45.79)
CIE-LCHlch(66.53, 71.05, 319.87°)
OKLaboklab(73.4% 0.1406 -0.127)
OKLCHoklch(73.4% 0.189 317.9)
XYZxyz(52.4280, 36.0133, 90.5580)
Luminance0.3601 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97DF5 #99F57D
analogous
#9D7DF5 #D97DF5 #F57DD5
triadic
#D97DF5 #F5D97D #7DF5D9
tetradic
#D97DF5 #F59D7D #99F57D #7DD5F5
square
#D97DF5 #F59D7D #99F57D #7DD5F5
split-complementary
#D97DF5 #D5F57D #7DF59D
monochromatic
#B412E6 #C844F1 #D97DF5 #EAB6F9 #F7E3FD

Accessibility & contrast

On white

2.56
#D97DF5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.20
#D97DF5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97DF5
8.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97DF5#FFFFFF#000000##000000
##D97DF51.002.568.208.20
#FFFFFF2.561.0021.0021.00
#0000008.2021.001.001.00
##0000008.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#679CF9
Deuteranopia (green-blind)
#82A5F2
Tritanopia (blue-blind)
#D98EAE
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d97df5;
/* rgb */ color: rgb(217, 125, 245);
/* oklch */ color: oklch(73.4% 0.189 317.9);
Tailwind
colors: {
  custom: {
    50: '#e7a5f9',
    500: '#d97df5',
    950: '#000000',
  },
}
SCSS
$custom: #d97df5;
$custom-light: #e7a5f9;
$custom-dark: #000000;
JSON
{
  "hex": "#d97df5",
  "rgb": {
    "r": 217,
    "g": 125,
    "b": 245
  },
  "hsl": {
    "h": 286,
    "s": 85.714,
    "l": 72.549
  },
  "oklch": {
    "l": 0.73401,
    "c": 0.18945,
    "h": 317.9
  },
  "luminance": 0.36012
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D97DF5

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

Preview Lab → · Contrast checker → · Palette generator →

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