#D97FF6#D97FF6

#D97FF6 is a light, vivid purple. Relative luminance 0.366; OKLCH L 73.7% C 0.187 H 317.5°. Best body text is #000000 at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#D97FF6
RGBrgb(217, 127, 246)
HSLhsl(285, 87%, 73%)
HSVhsv(285, 48%, 96%)
CMYKcmyk(11.8%, 48.4%, 0%, 3.5%)
CIE-LABlab(66.97, 53.51, -45.66)
CIE-LCHlch(66.97, 70.34, 319.53°)
OKLaboklab(73.74% 0.138 -0.1266)
OKLCHoklch(73.74% 0.187 317.5)
XYZxyz(52.8368, 36.5860, 91.4494)
Luminance0.3658 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97FF6 #9CF67F
analogous
#9D7FF6 #D97FF6 #F67FD7
triadic
#D97FF6 #F6D97F #7FF6D9
tetradic
#D97FF6 #F69D7F #9CF67F #7FD7F6
square
#D97FF6 #F69D7F #9CF67F #7FD7F6
split-complementary
#D97FF6 #D7F67F #7FF69D
monochromatic
#B510EA #C846F2 #D97FF6 #EAB8FA #F7E2FD

Accessibility & contrast

On white

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

On black

8.32
#D97FF6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97FF6
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97FF6#FFFFFF#000000##000000
##D97FF61.002.538.328.32
#FFFFFF2.531.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#699DFA
Deuteranopia (green-blind)
#83A6F3
Tritanopia (blue-blind)
#D890AF
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #d97ff6;
/* rgb */ color: rgb(217, 127, 246);
/* oklch */ color: oklch(73.7% 0.187 317.5);
Tailwind
colors: {
  custom: {
    50: '#e7a7f9',
    500: '#d97ff6',
    950: '#000000',
  },
}
SCSS
$custom: #d97ff6;
$custom-light: #e7a7f9;
$custom-dark: #000000;
JSON
{
  "hex": "#d97ff6",
  "rgb": {
    "r": 217,
    "g": 127,
    "b": 246
  },
  "hsl": {
    "h": 285.378,
    "s": 86.861,
    "l": 73.137
  },
  "oklch": {
    "l": 0.73739,
    "c": 0.1873,
    "h": 317.5
  },
  "luminance": 0.36584
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D97FF6

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

Preview Lab → · Contrast checker → · Palette generator →

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