#D97FF8#D97FF8

#D97FF8 is a light, vivid purple. Relative luminance 0.367; OKLCH L 73.8% C 0.189 H 316.9°. Best body text is #000000 at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#D97FF8
RGBrgb(217, 127, 248)
HSLhsl(285, 90%, 74%)
HSVhsv(285, 49%, 97%)
CMYKcmyk(12.5%, 48.8%, 0%, 2.7%)
CIE-LABlab(67.06, 53.91, -46.61)
CIE-LCHlch(67.06, 71.26, 319.16°)
OKLaboklab(73.84% 0.1383 -0.1294)
OKLCHoklch(73.84% 0.189 316.9)
XYZxyz(53.1455, 36.7095, 93.0748)
Luminance0.3671 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97FF8 #9EF87F
analogous
#9C7FF8 #D97FF8 #F87FDA
triadic
#D97FF8 #F8D97F #7FF8D9
tetradic
#D97FF8 #F89C7F #9EF87F #7FDAF8
square
#D97FF8 #F89C7F #9EF87F #7FDAF8
split-complementary
#D97FF8 #DAF87F #7FF89C
monochromatic
#B50DF0 #C845F5 #D97FF8 #EAB9FB #F6E2FD

Accessibility & contrast

On white

2.52
#D97FF8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.34
#D97FF8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97FF8
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97FF8#FFFFFF#000000##000000
##D97FF81.002.528.348.34
#FFFFFF2.521.0021.0021.00
#0000008.3421.001.001.00
##0000008.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#679DFC
Deuteranopia (green-blind)
#82A6F5
Tritanopia (blue-blind)
#D891B0
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #d97ff8;
/* rgb */ color: rgb(217, 127, 248);
/* oklch */ color: oklch(73.8% 0.189 316.9);
Tailwind
colors: {
  custom: {
    50: '#e7a7fb',
    500: '#d97ff8',
    950: '#000000',
  },
}
SCSS
$custom: #d97ff8;
$custom-light: #e7a7fb;
$custom-dark: #000000;
JSON
{
  "hex": "#d97ff8",
  "rgb": {
    "r": 217,
    "g": 127,
    "b": 248
  },
  "hsl": {
    "h": 284.628,
    "s": 89.63,
    "l": 73.529
  },
  "oklch": {
    "l": 0.73839,
    "c": 0.18935,
    "h": 316.9
  },
  "luminance": 0.36708
}

Semantic roles & 50–950 ramp

primary
#D97FF8
secondary
#DEF5D6
accent
#E6003B
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161017
muted
#847F85

Preview Lab

Preview with #D97FF8

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

Preview Lab → · Contrast checker → · Palette generator →

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