#D97FD2#D97FD2

#D97FD2 is a light, vivid purple. Relative luminance 0.346; OKLCH L 72.1% C 0.152 H 329.9°. Best body text is #000000 at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#D97FD2
RGBrgb(217, 127, 210)
HSLhsl(305, 54%, 67%)
HSVhsv(305, 41%, 85%)
CMYKcmyk(0%, 41.5%, 3.2%, 14.9%)
CIE-LABlab(65.43, 46.75, -28.11)
CIE-LCHlch(65.43, 54.55, 328.98°)
OKLaboklab(72.09% 0.1316 -0.0764)
OKLCHoklch(72.09% 0.152 329.9)
XYZxyz(47.8369, 34.5860, 65.1163)
Luminance0.3458 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97FD2 #7FD986
analogous
#B37FD9 #D97FD2 #D97FA5
triadic
#D97FD2 #D2D97F #7FD2D9
tetradic
#D97FD2 #D9B37F #7FD986 #7FA5D9
square
#D97FD2 #D9B37F #7FD986 #7FA5D9
split-complementary
#D97FD2 #A5D97F #7FD9B3
monochromatic
#AB33A2 #CB50C1 #D97FD2 #E7AEE3 #F5DDF3

Accessibility & contrast

On white

2.65
#D97FD2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.92
#D97FD2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97FD2
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97FD2#FFFFFF#000000##000000
##D97FD21.002.657.927.92
#FFFFFF2.651.0021.0021.00
#0000007.9221.001.001.00
##0000007.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7B97D5
Deuteranopia (green-blind)
#93A3CF
Tritanopia (blue-blind)
#DF869F
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #d97fd2;
/* rgb */ color: rgb(217, 127, 210);
/* oklch */ color: oklch(72.1% 0.152 329.9);
Tailwind
colors: {
  custom: {
    50: '#e6a6e0',
    500: '#d97fd2',
    950: '#000000',
  },
}
SCSS
$custom: #d97fd2;
$custom-light: #e6a6e0;
$custom-dark: #000000;
JSON
{
  "hex": "#d97fd2",
  "rgb": {
    "r": 217,
    "g": 127,
    "b": 210
  },
  "hsl": {
    "h": 304.667,
    "s": 54.217,
    "l": 67.451
  },
  "oklch": {
    "l": 0.72086,
    "c": 0.1522,
    "h": 329.9
  },
  "luminance": 0.34584
}

Semantic roles & 50–950 ramp

primary
#D97FD2
secondary
#CCE8CE
accent
#C23024
background
#FEFAFD
surface
#FDF4FB
border
#D5CED4
text
#160F15
muted
#847F83

Preview Lab

Preview with #D97FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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