#D97DF8#D97DF8

#D97DF8 is a light, vivid purple. Relative luminance 0.362; OKLCH L 73.6% C 0.193 H 317.1°. Best body text is #000000 at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#D97DF8
RGBrgb(217, 125, 248)
HSLhsl(285, 90%, 73%)
HSVhsv(285, 50%, 97%)
CMYKcmyk(12.5%, 49.6%, 0%, 2.7%)
CIE-LABlab(66.67, 54.92, -47.22)
CIE-LCHlch(66.67, 72.42, 319.31°)
OKLaboklab(73.55% 0.1409 -0.1311)
OKLCHoklch(73.55% 0.193 317.1)
XYZxyz(52.8897, 36.1980, 92.9896)
Luminance0.3620 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97DF8 #9CF87D
analogous
#9B7DF8 #D97DF8 #F87DD9
triadic
#D97DF8 #F8D97D #7DF8D9
tetradic
#D97DF8 #F89B7D #9CF87D #7DD9F8
square
#D97DF8 #F89B7D #9CF87D #7DD9F8
split-complementary
#D97DF8 #D9F87D #7DF89B
monochromatic
#B50DEE #C843F5 #D97DF8 #EAB7FB #F7E2FD

Accessibility & contrast

On white

2.55
#D97DF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.24
#D97DF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97DF8
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97DF8#FFFFFF#000000##000000
##D97DF81.002.558.248.24
#FFFFFF2.551.0021.0021.00
#0000008.2421.001.001.00
##0000008.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#659CFC
Deuteranopia (green-blind)
#80A5F5
Tritanopia (blue-blind)
#D88FAF
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d97df8;
/* rgb */ color: rgb(217, 125, 248);
/* oklch */ color: oklch(73.6% 0.193 317.1);
Tailwind
colors: {
  custom: {
    50: '#e7a5fb',
    500: '#d97df8',
    950: '#000000',
  },
}
SCSS
$custom: #d97df8;
$custom-light: #e7a5fb;
$custom-dark: #000000;
JSON
{
  "hex": "#d97df8",
  "rgb": {
    "r": 217,
    "g": 125,
    "b": 248
  },
  "hsl": {
    "h": 284.878,
    "s": 89.781,
    "l": 73.137
  },
  "oklch": {
    "l": 0.73552,
    "c": 0.19251,
    "h": 317.1
  },
  "luminance": 0.36196
}

Semantic roles & 50–950 ramp

primary
#D97DF8
secondary
#DEF6D5
accent
#E6003A
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D97DF8

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

Preview Lab → · Contrast checker → · Palette generator →

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