#D97DF2#D97DF2

#D97DF2 is a light, vivid purple. Relative luminance 0.358; OKLCH L 73.3% C 0.186 H 318.8°. Best body text is #000000 at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#D97DF2
RGBrgb(217, 125, 242)
HSLhsl(287, 82%, 72%)
HSVhsv(287, 48%, 95%)
CMYKcmyk(10.3%, 48.3%, 0%, 5.1%)
CIE-LABlab(66.39, 53.74, -44.36)
CIE-LCHlch(66.39, 69.68, 320.46°)
OKLaboklab(73.25% 0.1402 -0.1229)
OKLCHoklch(73.25% 0.186 318.8)
XYZxyz(51.9738, 35.8316, 88.1656)
Luminance0.3583 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97DF2 #96F27D
analogous
#9E7DF2 #D97DF2 #F27DD1
triadic
#D97DF2 #F2D97D #7DF2D9
tetradic
#D97DF2 #F29E7D #96F27D #7DD1F2
square
#D97DF2 #F29E7D #96F27D #7DD1F2
split-complementary
#D97DF2 #D1F27D #7DF29E
monochromatic
#B416DE #C945EC #D97DF2 #E9B5F8 #F7E3FC

Accessibility & contrast

On white

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

On black

8.17
#D97DF2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97DF2
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97DF2#FFFFFF#000000##000000
##D97DF21.002.578.178.17
#FFFFFF2.571.0021.0021.00
#0000008.1721.001.001.00
##0000008.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#689BF6
Deuteranopia (green-blind)
#84A5EF
Tritanopia (blue-blind)
#D98DAC
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d97df2;
/* rgb */ color: rgb(217, 125, 242);
/* oklch */ color: oklch(73.3% 0.186 318.8);
Tailwind
colors: {
  custom: {
    50: '#e7a5f7',
    500: '#d97df2',
    950: '#000000',
  },
}
SCSS
$custom: #d97df2;
$custom-light: #e7a5f7;
$custom-dark: #000000;
JSON
{
  "hex": "#d97df2",
  "rgb": {
    "r": 217,
    "g": 125,
    "b": 242
  },
  "hsl": {
    "h": 287.179,
    "s": 81.818,
    "l": 71.961
  },
  "oklch": {
    "l": 0.73253,
    "c": 0.18641,
    "h": 318.8
  },
  "luminance": 0.3583
}

Semantic roles & 50–950 ramp

primary
#D97DF2
secondary
#DDF4D7
accent
#DE0735
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#160F17
muted
#847F85

Preview Lab

Preview with #D97DF2

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

Preview Lab → · Contrast checker → · Palette generator →

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