#D97FF7#D97FF7

#D97FF7 is a light, vivid purple. Relative luminance 0.366; OKLCH L 73.8% C 0.188 H 317.2°. Best body text is #000000 at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#D97FF7
RGBrgb(217, 127, 247)
HSLhsl(285, 88%, 73%)
HSVhsv(285, 49%, 97%)
CMYKcmyk(12.1%, 48.6%, 0%, 3.1%)
CIE-LABlab(67.01, 53.71, -46.13)
CIE-LCHlch(67.01, 70.80, 319.34°)
OKLaboklab(73.79% 0.1381 -0.128)
OKLCHoklch(73.79% 0.188 317.2)
XYZxyz(52.9907, 36.6476, 92.2600)
Luminance0.3665 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97FF7 #9DF77F
analogous
#9D7FF7 #D97FF7 #F77FD9
triadic
#D97FF7 #F7D97F #7FF7D9
tetradic
#D97FF7 #F79D7F #9DF77F #7FD9F7
square
#D97FF7 #F79D7F #9DF77F #7FD9F7
split-complementary
#D97FF7 #D9F77F #7FF79D
monochromatic
#B50FED #C845F3 #D97FF7 #EAB9FB #F6E2FD

Accessibility & contrast

On white

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

On black

8.33
#D97FF7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97FF7
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97FF7#FFFFFF#000000##000000
##D97FF71.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#689DFB
Deuteranopia (green-blind)
#83A6F4
Tritanopia (blue-blind)
#D890B0
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #d97ff7;
/* rgb */ color: rgb(217, 127, 247);
/* oklch */ color: oklch(73.8% 0.188 317.2);
Tailwind
colors: {
  custom: {
    50: '#e7a7fa',
    500: '#d97ff7',
    950: '#000000',
  },
}
SCSS
$custom: #d97ff7;
$custom-light: #e7a7fa;
$custom-dark: #000000;
JSON
{
  "hex": "#d97ff7",
  "rgb": {
    "r": 217,
    "g": 127,
    "b": 247
  },
  "hsl": {
    "h": 285,
    "s": 88.235,
    "l": 73.333
  },
  "oklch": {
    "l": 0.73789,
    "c": 0.18832,
    "h": 317.2
  },
  "luminance": 0.36646
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D97FF7

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

Preview Lab → · Contrast checker → · Palette generator →

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