#D97FD5#D97FD5

#D97FD5 is a light, vivid purple. Relative luminance 0.347; OKLCH L 72.2% C 0.155 H 328.6°. Best body text is #000000 at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#D97FD5
RGBrgb(217, 127, 213)
HSLhsl(303, 54%, 67%)
HSVhsv(303, 41%, 85%)
CMYKcmyk(0%, 41.5%, 1.8%, 14.9%)
CIE-LABlab(65.54, 47.28, -29.61)
CIE-LCHlch(65.54, 55.79, 327.95°)
OKLaboklab(72.21% 0.1323 -0.0806)
OKLCHoklch(72.21% 0.155 328.6)
XYZxyz(48.2141, 34.7369, 67.1032)
Luminance0.3473 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97FD5 #7FD983
analogous
#B07FD9 #D97FD5 #D97FA8
triadic
#D97FD5 #D5D97F #7FD5D9
tetradic
#D97FD5 #D9B07F #7FD983 #7FA8D9
square
#D97FD5 #D9B07F #7FD983 #7FA8D9
split-complementary
#D97FD5 #A8D97F #7FD9B0
monochromatic
#AB33A6 #CB50C6 #D97FD5 #E7AEE4 #F5DDF4

Accessibility & contrast

On white

2.64
#D97FD5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.95
#D97FD5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97FD5
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97FD5#FFFFFF#000000##000000
##D97FD51.002.647.957.95
#FFFFFF2.641.0021.0021.00
#0000007.9521.001.001.00
##0000007.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7998D8
Deuteranopia (green-blind)
#92A3D2
Tritanopia (blue-blind)
#DF87A0
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #d97fd5;
/* rgb */ color: rgb(217, 127, 213);
/* oklch */ color: oklch(72.2% 0.155 328.6);
Tailwind
colors: {
  custom: {
    50: '#e6a6e2',
    500: '#d97fd5',
    950: '#000000',
  },
}
SCSS
$custom: #d97fd5;
$custom-light: #e6a6e2;
$custom-dark: #000000;
JSON
{
  "hex": "#d97fd5",
  "rgb": {
    "r": 217,
    "g": 127,
    "b": 213
  },
  "hsl": {
    "h": 302.667,
    "s": 54.217,
    "l": 67.451
  },
  "oklch": {
    "l": 0.72214,
    "c": 0.15493,
    "h": 328.6
  },
  "luminance": 0.34735
}

Semantic roles & 50–950 ramp

primary
#D97FD5
secondary
#CCE8CD
accent
#C22B24
background
#FEFAFD
surface
#FDF4FB
border
#D5CED4
text
#161015
muted
#847F83

Preview Lab

Preview with #D97FD5

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

Preview Lab → · Contrast checker → · Palette generator →

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