#D97DF4#D97DF4

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

Color values

HEX#D97DF4
RGBrgb(217, 125, 244)
HSLhsl(286, 84%, 72%)
HSVhsv(286, 49%, 96%)
CMYKcmyk(11.1%, 48.8%, 0%, 4.3%)
CIE-LABlab(66.48, 54.13, -45.31)
CIE-LCHlch(66.48, 70.59, 320.06°)
OKLaboklab(73.35% 0.1404 -0.1256)
OKLCHoklch(73.35% 0.188 318.2)
XYZxyz(52.2758, 35.9524, 89.7562)
Luminance0.3595 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97DF4 #98F47D
analogous
#9E7DF4 #D97DF4 #F47DD3
triadic
#D97DF4 #F4D97D #7DF4D9
tetradic
#D97DF4 #F49E7D #98F47D #7DD3F4
square
#D97DF4 #F49E7D #98F47D #7DD3F4
split-complementary
#D97DF4 #D3F47D #7DF49E
monochromatic
#B413E3 #C945EF #D97DF4 #E9B5F9 #F7E3FD

Accessibility & contrast

On white

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

On black

8.19
#D97DF4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97DF4
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97DF4#FFFFFF#000000##000000
##D97DF41.002.568.198.19
#FFFFFF2.561.0021.0021.00
#0000008.1921.001.001.00
##0000008.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#679CF8
Deuteranopia (green-blind)
#83A5F1
Tritanopia (blue-blind)
#D98EAD
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d97df4;
/* rgb */ color: rgb(217, 125, 244);
/* oklch */ color: oklch(73.4% 0.188 318.2);
Tailwind
colors: {
  custom: {
    50: '#e7a5f8',
    500: '#d97df4',
    950: '#000000',
  },
}
SCSS
$custom: #d97df4;
$custom-light: #e7a5f8;
$custom-dark: #000000;
JSON
{
  "hex": "#d97df4",
  "rgb": {
    "r": 217,
    "g": 125,
    "b": 244
  },
  "hsl": {
    "h": 286.387,
    "s": 84.397,
    "l": 72.353
  },
  "oklch": {
    "l": 0.73352,
    "c": 0.18844,
    "h": 318.2
  },
  "luminance": 0.35951
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D97DF4

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

Preview Lab → · Contrast checker → · Palette generator →

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