#D97EF9#D97EF9

#D97EF9 is a light, vivid purple. Relative luminance 0.365; OKLCH L 73.7% C 0.192 H 316.7°. Best body text is #000000 at 8.30:1 contrast (WCAG AA passes).

Color values

HEX#D97EF9
RGBrgb(217, 126, 249)
HSLhsl(284, 91%, 74%)
HSVhsv(284, 49%, 98%)
CMYKcmyk(12.9%, 49.4%, 0%, 2.4%)
CIE-LABlab(66.91, 54.61, -47.39)
CIE-LCHlch(66.91, 72.31, 319.05°)
OKLaboklab(73.75% 0.1397 -0.1316)
OKLCHoklch(73.75% 0.192 316.7)
XYZxyz(53.1725, 36.5147, 93.8512)
Luminance0.3651 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97EF9 #9EF97E
analogous
#9B7EF9 #D97EF9 #F97EDB
triadic
#D97EF9 #F9D97E #7EF9D9
tetradic
#D97EF9 #F99B7E #9EF97E #7EDBF9
square
#D97EF9 #F99B7E #9EF97E #7EDBF9
split-complementary
#D97EF9 #DBF97E #7EF99B
monochromatic
#B50BF1 #C844F6 #D97EF9 #EAB8FC #F6E2FE

Accessibility & contrast

On white

2.53
#D97EF9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.30
#D97EF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97EF9
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97EF9#FFFFFF#000000##000000
##D97EF91.002.538.308.30
#FFFFFF2.531.0021.0021.00
#0000008.3021.001.001.00
##0000008.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#659DFD
Deuteranopia (green-blind)
#81A6F6
Tritanopia (blue-blind)
#D890B0
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #d97ef9;
/* rgb */ color: rgb(217, 126, 249);
/* oklch */ color: oklch(73.7% 0.192 316.7);
Tailwind
colors: {
  custom: {
    50: '#e7a6fc',
    500: '#d97ef9',
    950: '#000000',
  },
}
SCSS
$custom: #d97ef9;
$custom-light: #e7a6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#d97ef9",
  "rgb": {
    "r": 217,
    "g": 126,
    "b": 249
  },
  "hsl": {
    "h": 284.39,
    "s": 91.111,
    "l": 73.529
  },
  "oklch": {
    "l": 0.73745,
    "c": 0.19195,
    "h": 316.7
  },
  "luminance": 0.36513
}

Semantic roles & 50–950 ramp

primary
#D97EF9
secondary
#DEF6D5
accent
#E6003C
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161017
muted
#847F85

Preview Lab

Preview with #D97EF9

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

Preview Lab → · Contrast checker → · Palette generator →

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