#D97FCC#D97FCC

#D97FCC is a light, vivid purple. Relative luminance 0.343; OKLCH L 71.8% C 0.147 H 332.4°. Best body text is #000000 at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#D97FCC
RGBrgb(217, 127, 204)
HSLhsl(309, 54%, 67%)
HSVhsv(309, 41%, 85%)
CMYKcmyk(0%, 41.5%, 6%, 14.9%)
CIE-LABlab(65.19, 45.70, -25.11)
CIE-LCHlch(65.19, 52.15, 331.21°)
OKLaboklab(71.84% 0.1302 -0.0679)
OKLCHoklch(71.84% 0.147 332.4)
XYZxyz(47.1034, 34.2926, 61.2531)
Luminance0.3429 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97FCC #7FD98C
analogous
#B97FD9 #D97FCC #D97F9F
triadic
#D97FCC #CCD97F #7FCCD9
tetradic
#D97FCC #D9B97F #7FD98C #7F9FD9
square
#D97FCC #D9B97F #7FD98C #7F9FD9
split-complementary
#D97FCC #9FD97F #7FD9B9
monochromatic
#AB339A #CB50B9 #D97FCC #E7AEDF #F5DDF2

Accessibility & contrast

On white

2.67
#D97FCC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.86
#D97FCC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97FCC
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97FCC#FFFFFF#000000##000000
##D97FCC1.002.677.867.86
#FFFFFF2.671.0021.0021.00
#0000007.8621.001.001.00
##0000007.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#7D96CF
Deuteranopia (green-blind)
#95A3C9
Tritanopia (blue-blind)
#E0849C
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #d97fcc;
/* rgb */ color: rgb(217, 127, 204);
/* oklch */ color: oklch(71.8% 0.147 332.4);
Tailwind
colors: {
  custom: {
    50: '#e6a6db',
    500: '#d97fcc',
    950: '#000000',
  },
}
SCSS
$custom: #d97fcc;
$custom-light: #e6a6db;
$custom-dark: #000000;
JSON
{
  "hex": "#d97fcc",
  "rgb": {
    "r": 217,
    "g": 127,
    "b": 204
  },
  "hsl": {
    "h": 308.667,
    "s": 54.217,
    "l": 67.451
  },
  "oklch": {
    "l": 0.71837,
    "c": 0.14688,
    "h": 332.4
  },
  "luminance": 0.3429
}

Semantic roles & 50–950 ramp

primary
#D97FCC
secondary
#CCE8D0
accent
#C23B24
background
#FEFAFD
surface
#FDF4FB
border
#D5CED4
text
#160F15
muted
#847F83

Preview Lab

Preview with #D97FCC

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

Preview Lab → · Contrast checker → · Palette generator →

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