#D97FF5#D97FF5

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

Color values

HEX#D97FF5
RGBrgb(217, 127, 245)
HSLhsl(286, 86%, 73%)
HSVhsv(286, 48%, 96%)
CMYKcmyk(11.4%, 48.2%, 0%, 3.9%)
CIE-LABlab(66.92, 53.31, -45.18)
CIE-LCHlch(66.92, 69.88, 319.72°)
OKLaboklab(73.69% 0.1379 -0.1253)
OKLCHoklch(73.69% 0.186 317.7)
XYZxyz(52.6838, 36.5248, 90.6433)
Luminance0.3652 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97FF5 #9BF57F
analogous
#9E7FF5 #D97FF5 #F57FD6
triadic
#D97FF5 #F5D97F #7FF5D9
tetradic
#D97FF5 #F59E7F #9BF57F #7FD6F5
square
#D97FF5 #F59E7F #9BF57F #7FD6F5
split-complementary
#D97FF5 #D6F57F #7FF59E
monochromatic
#B512E8 #C846F1 #D97FF5 #EAB8F9 #F7E3FD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D97FF5#FFFFFF#000000##000000
##D97FF51.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)
#699DF9
Deuteranopia (green-blind)
#84A6F2
Tritanopia (blue-blind)
#D990AF
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #d97ff5;
/* rgb */ color: rgb(217, 127, 245);
/* oklch */ color: oklch(73.7% 0.186 317.7);
Tailwind
colors: {
  custom: {
    50: '#e7a7f9',
    500: '#d97ff5',
    950: '#000000',
  },
}
SCSS
$custom: #d97ff5;
$custom-light: #e7a7f9;
$custom-dark: #000000;
JSON
{
  "hex": "#d97ff5",
  "rgb": {
    "r": 217,
    "g": 127,
    "b": 245
  },
  "hsl": {
    "h": 285.763,
    "s": 85.507,
    "l": 72.941
  },
  "oklch": {
    "l": 0.7369,
    "c": 0.18627,
    "h": 317.7
  },
  "luminance": 0.36523
}

Semantic roles & 50–950 ramp

primary
#D97FF5
secondary
#DDF5D6
accent
#E20338
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161017
muted
#847F85

Preview Lab

Preview with #D97FF5

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

Preview Lab → · Contrast checker → · Palette generator →

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