#D97DF9#D97DF9

#D97DF9 is a light, vivid purple. Relative luminance 0.363; OKLCH L 73.6% C 0.194 H 316.8°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#D97DF9
RGBrgb(217, 125, 249)
HSLhsl(285, 91%, 73%)
HSVhsv(285, 50%, 98%)
CMYKcmyk(12.9%, 49.8%, 0%, 2.4%)
CIE-LABlab(66.72, 55.12, -47.69)
CIE-LCHlch(66.72, 72.89, 319.13°)
OKLaboklab(73.6% 0.141 -0.1325)
OKLCHoklch(73.6% 0.194 316.8)
XYZxyz(53.0453, 36.2602, 93.8088)
Luminance0.3626 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97DF9 #9DF97D
analogous
#9B7DF9 #D97DF9 #F97DDB
triadic
#D97DF9 #F9D97D #7DF9D9
tetradic
#D97DF9 #F99B7D #9DF97D #7DDBF9
square
#D97DF9 #F99B7D #9DF97D #7DDBF9
split-complementary
#D97DF9 #DBF97D #7DF99B
monochromatic
#B50BF0 #C842F6 #D97DF9 #EAB7FC #F6E2FE

Accessibility & contrast

On white

2.54
#D97DF9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.25
#D97DF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97DF9
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97DF9#FFFFFF#000000##000000
##D97DF91.002.548.258.25
#FFFFFF2.541.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#649CFD
Deuteranopia (green-blind)
#80A5F6
Tritanopia (blue-blind)
#D88FB0
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d97df9;
/* rgb */ color: rgb(217, 125, 249);
/* oklch */ color: oklch(73.6% 0.194 316.8);
Tailwind
colors: {
  custom: {
    50: '#e7a5fc',
    500: '#d97df9',
    950: '#000000',
  },
}
SCSS
$custom: #d97df9;
$custom-light: #e7a5fc;
$custom-dark: #000000;
JSON
{
  "hex": "#d97df9",
  "rgb": {
    "r": 217,
    "g": 125,
    "b": 249
  },
  "hsl": {
    "h": 284.516,
    "s": 91.176,
    "l": 73.333
  },
  "oklch": {
    "l": 0.73602,
    "c": 0.19353,
    "h": 316.8
  },
  "luminance": 0.36258
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D97DF9

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

Preview Lab → · Contrast checker → · Palette generator →

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