#D97FF9#D97FF9

#D97FF9 is a light, vivid purple. Relative luminance 0.368; OKLCH L 73.9% C 0.190 H 316.6°. Best body text is #000000 at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#D97FF9
RGBrgb(217, 127, 249)
HSLhsl(284, 91%, 74%)
HSVhsv(284, 49%, 98%)
CMYKcmyk(12.9%, 49%, 0%, 2.4%)
CIE-LABlab(67.11, 54.11, -47.08)
CIE-LCHlch(67.11, 71.72, 318.97°)
OKLaboklab(73.89% 0.1384 -0.1308)
OKLCHoklch(73.89% 0.19 316.6)
XYZxyz(53.3010, 36.7717, 93.8941)
Luminance0.3677 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97FF9 #9FF97F
analogous
#9C7FF9 #D97FF9 #F97FDC
triadic
#D97FF9 #F9D97F #7FF9D9
tetradic
#D97FF9 #F99C7F #9FF97F #7FDCF9
square
#D97FF9 #F99C7F #9FF97F #7FDCF9
split-complementary
#D97FF9 #DCF97F #7FF99C
monochromatic
#B60BF2 #C845F6 #D97FF9 #EAB9FC #F6E2FE

Accessibility & contrast

On white

2.51
#D97FF9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.35
#D97FF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97FF9
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97FF9#FFFFFF#000000##000000
##D97FF91.002.518.358.35
#FFFFFF2.511.0021.0021.00
#0000008.3521.001.001.00
##0000008.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#679EFD
Deuteranopia (green-blind)
#82A6F6
Tritanopia (blue-blind)
#D891B1
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #d97ff9;
/* rgb */ color: rgb(217, 127, 249);
/* oklch */ color: oklch(73.9% 0.190 316.6);
Tailwind
colors: {
  custom: {
    50: '#e7a7fc',
    500: '#d97ff9',
    950: '#000000',
  },
}
SCSS
$custom: #d97ff9;
$custom-light: #e7a7fc;
$custom-dark: #000000;
JSON
{
  "hex": "#d97ff9",
  "rgb": {
    "r": 217,
    "g": 127,
    "b": 249
  },
  "hsl": {
    "h": 284.262,
    "s": 91.045,
    "l": 73.725
  },
  "oklch": {
    "l": 0.73889,
    "c": 0.19038,
    "h": 316.6
  },
  "luminance": 0.3677
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D97FF9

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

Preview Lab → · Contrast checker → · Palette generator →

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