#D97FCD#D97FCD

#D97FCD is a light, vivid purple. Relative luminance 0.343; OKLCH L 71.9% C 0.148 H 332.0°. Best body text is #000000 at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#D97FCD
RGBrgb(217, 127, 205)
HSLhsl(308, 54%, 67%)
HSVhsv(308, 41%, 85%)
CMYKcmyk(0%, 41.5%, 5.5%, 14.9%)
CIE-LABlab(65.23, 45.88, -25.61)
CIE-LCHlch(65.23, 52.54, 330.82°)
OKLaboklab(71.88% 0.1305 -0.0694)
OKLCHoklch(71.88% 0.148 332)
XYZxyz(47.2237, 34.3408, 61.8868)
Luminance0.3434 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97FCD #7FD98B
analogous
#B87FD9 #D97FCD #D97FA0
triadic
#D97FCD #CDD97F #7FCDD9
tetradic
#D97FCD #D9B87F #7FD98B #7FA0D9
square
#D97FCD #D9B87F #7FD98B #7FA0D9
split-complementary
#D97FCD #A0D97F #7FD9B8
monochromatic
#AB339B #CB50BB #D97FCD #E7AEDF #F5DDF2

Accessibility & contrast

On white

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

On black

7.87
#D97FCD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97FCD
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97FCD#FFFFFF#000000##000000
##D97FCD1.002.677.877.87
#FFFFFF2.671.0021.0021.00
#0000007.8721.001.001.00
##0000007.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7D96D0
Deuteranopia (green-blind)
#95A3CA
Tritanopia (blue-blind)
#E0859D
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #d97fcd;
/* rgb */ color: rgb(217, 127, 205);
/* oklch */ color: oklch(71.9% 0.148 332.0);
Tailwind
colors: {
  custom: {
    50: '#e6a6dc',
    500: '#d97fcd',
    950: '#000000',
  },
}
SCSS
$custom: #d97fcd;
$custom-light: #e6a6dc;
$custom-dark: #000000;
JSON
{
  "hex": "#d97fcd",
  "rgb": {
    "r": 217,
    "g": 127,
    "b": 205
  },
  "hsl": {
    "h": 308,
    "s": 54.217,
    "l": 67.451
  },
  "oklch": {
    "l": 0.71878,
    "c": 0.14775,
    "h": 332
  },
  "luminance": 0.34338
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D97FCD

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

Preview Lab → · Contrast checker → · Palette generator →

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