#D97FF1#D97FF1

#D97FF1 is a light, vivid purple. Relative luminance 0.363; OKLCH L 73.5% C 0.182 H 318.9°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#D97FF1
RGBrgb(217, 127, 241)
HSLhsl(287, 80%, 72%)
HSVhsv(287, 47%, 95%)
CMYKcmyk(10%, 47.3%, 0%, 5.5%)
CIE-LABlab(66.74, 52.53, -43.27)
CIE-LCHlch(66.74, 68.05, 320.52°)
OKLaboklab(73.49% 0.1373 -0.1197)
OKLCHoklch(73.49% 0.182 318.9)
XYZxyz(52.0797, 36.2832, 87.4620)
Luminance0.3628 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97FF1 #97F17F
analogous
#A07FF1 #D97FF1 #F17FD0
triadic
#D97FF1 #F1D97F #7FF1D9
tetradic
#D97FF1 #F1A07F #97F17F #7FD0F1
square
#D97FF1 #F1A07F #97F17F #7FD0F1
split-complementary
#D97FF1 #D0F17F #7FF1A0
monochromatic
#B418DD #C948EB #D97FF1 #E9B6F7 #F7E3FC

Accessibility & contrast

On white

2.54
#D97FF1 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.26
#D97FF1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97FF1
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97FF1#FFFFFF#000000##000000
##D97FF11.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C9CF5
Deuteranopia (green-blind)
#86A5EE
Tritanopia (blue-blind)
#DA8FAD
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #d97ff1;
/* rgb */ color: rgb(217, 127, 241);
/* oklch */ color: oklch(73.5% 0.182 318.9);
Tailwind
colors: {
  custom: {
    50: '#e7a7f6',
    500: '#d97ff1',
    950: '#000000',
  },
}
SCSS
$custom: #d97ff1;
$custom-light: #e7a7f6;
$custom-dark: #000000;
JSON
{
  "hex": "#d97ff1",
  "rgb": {
    "r": 217,
    "g": 127,
    "b": 241
  },
  "hsl": {
    "h": 287.368,
    "s": 80.282,
    "l": 72.157
  },
  "oklch": {
    "l": 0.73494,
    "c": 0.18219,
    "h": 318.9
  },
  "luminance": 0.36281
}

Semantic roles & 50–950 ramp

primary
#D97FF1
secondary
#DDF4D7
accent
#DD0935
background
#FEFAFF
surface
#FDF4FE
border
#D5CED6
text
#161017
muted
#847F85

Preview Lab

Preview with #D97FF1

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

Preview Lab → · Contrast checker → · Palette generator →

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