#D97DF0#D97DF0

#D97DF0 is a light, vivid purple. Relative luminance 0.357; OKLCH L 73.2% C 0.184 H 319.4°. Best body text is #000000 at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#D97DF0
RGBrgb(217, 125, 240)
HSLhsl(288, 79%, 72%)
HSVhsv(288, 48%, 94%)
CMYKcmyk(9.6%, 47.9%, 0%, 5.9%)
CIE-LABlab(66.30, 53.35, -43.40)
CIE-LCHlch(66.30, 68.77, 320.87°)
OKLaboklab(73.16% 0.1399 -0.1201)
OKLCHoklch(73.16% 0.184 319.4)
XYZxyz(51.6750, 35.7121, 86.5923)
Luminance0.3571 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97DF0 #94F07D
analogous
#A07DF0 #D97DF0 #F07DCE
triadic
#D97DF0 #F0D97D #7DF0D9
tetradic
#D97DF0 #F0A07D #94F07D #7DCEF0
square
#D97DF0 #F0A07D #94F07D #7DCEF0
split-complementary
#D97DF0 #CEF07D #7DF0A0
monochromatic
#B319DA #C946EA #D97DF0 #E9B4F6 #F7E4FC

Accessibility & contrast

On white

2.58
#D97DF0 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.14
#D97DF0 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97DF0
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97DF0#FFFFFF#000000##000000
##D97DF01.002.588.148.14
#FFFFFF2.581.0021.0021.00
#0000008.1421.001.001.00
##0000008.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A9BF4
Deuteranopia (green-blind)
#85A4ED
Tritanopia (blue-blind)
#DA8DAB
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d97df0;
/* rgb */ color: rgb(217, 125, 240);
/* oklch */ color: oklch(73.2% 0.184 319.4);
Tailwind
colors: {
  custom: {
    50: '#e7a5f5',
    500: '#d97df0',
    950: '#000000',
  },
}
SCSS
$custom: #d97df0;
$custom-light: #e7a5f5;
$custom-dark: #000000;
JSON
{
  "hex": "#d97df0",
  "rgb": {
    "r": 217,
    "g": 125,
    "b": 240
  },
  "hsl": {
    "h": 288,
    "s": 79.31,
    "l": 71.569
  },
  "oklch": {
    "l": 0.73155,
    "c": 0.18439,
    "h": 319.4
  },
  "luminance": 0.3571
}

Semantic roles & 50–950 ramp

primary
#D97DF0
secondary
#DCF3D6
accent
#DC0A34
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#160F17
muted
#847F85

Preview Lab

Preview with #D97DF0

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

Preview Lab → · Contrast checker → · Palette generator →

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