#D97FE2#D97FE2

#D97FE2 is a light, vivid purple. Relative luminance 0.354; OKLCH L 72.8% C 0.167 H 323.8°. Best body text is #000000 at 8.08:1 contrast (WCAG AA passes).

Color values

HEX#D97FE2
RGBrgb(217, 127, 226)
HSLhsl(295, 63%, 69%)
HSVhsv(295, 44%, 89%)
CMYKcmyk(4%, 43.8%, 0%, 11.4%)
CIE-LABlab(66.08, 49.66, -36.01)
CIE-LCHlch(66.08, 61.34, 324.05°)
OKLaboklab(72.79% 0.1349 -0.0989)
OKLCHoklch(72.79% 0.167 323.8)
XYZxyz(49.9308, 35.4236, 76.1441)
Luminance0.3542 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97FE2 #88E27F
analogous
#A87FE2 #D97FE2 #E27FBA
triadic
#D97FE2 #E2D97F #7FE2D9
tetradic
#D97FE2 #E2A87F #88E27F #7FBAE2
square
#D97FE2 #E2A87F #88E27F #7FBAE2
split-complementary
#D97FE2 #BAE27F #7FE2A8
monochromatic
#AF2BBC #CA4DD7 #D97FE2 #E8B1ED #F7E3F9

Accessibility & contrast

On white

2.60
#D97FE2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.08
#D97FE2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97FE2
8.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97FE2#FFFFFF#000000##000000
##D97FE21.002.608.088.08
#FFFFFF2.601.0021.0021.00
#0000008.0821.001.001.00
##0000008.0821.001.001.00

Color blindness preview

Protanopia (red-blind)
#749AE5
Deuteranopia (green-blind)
#8CA4DF
Tritanopia (blue-blind)
#DC8AA6
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #d97fe2;
/* rgb */ color: rgb(217, 127, 226);
/* oklch */ color: oklch(72.8% 0.167 323.8);
Tailwind
colors: {
  custom: {
    50: '#e6a6eb',
    500: '#d97fe2',
    950: '#000000',
  },
}
SCSS
$custom: #d97fe2;
$custom-light: #e6a6eb;
$custom-dark: #000000;
JSON
{
  "hex": "#d97fe2",
  "rgb": {
    "r": 217,
    "g": 127,
    "b": 226
  },
  "hsl": {
    "h": 294.545,
    "s": 63.057,
    "l": 69.216
  },
  "oklch": {
    "l": 0.72788,
    "c": 0.16725,
    "h": 323.8
  },
  "luminance": 0.35421
}

Semantic roles & 50–950 ramp

primary
#D97FE2
secondary
#D3EDD0
accent
#CB1B2B
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#161016
muted
#847F84

Preview Lab

Preview with #D97FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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