#D97FDC#D97FDC

#D97FDC is a light, vivid purple. Relative luminance 0.351; OKLCH L 72.5% C 0.161 H 325.9°. Best body text is #000000 at 8.02:1 contrast (WCAG AA passes).

Color values

HEX#D97FDC
RGBrgb(217, 127, 220)
HSLhsl(298, 57%, 68%)
HSVhsv(298, 42%, 86%)
CMYKcmyk(1.4%, 42.3%, 0%, 13.7%)
CIE-LABlab(65.83, 48.55, -33.07)
CIE-LCHlch(65.83, 58.74, 325.74°)
OKLaboklab(72.52% 0.1338 -0.0905)
OKLCHoklch(72.52% 0.161 325.9)
XYZxyz(49.1218, 35.1000, 71.8838)
Luminance0.3510 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97FDC #82DC7F
analogous
#AB7FDC #D97FDC #DC7FB0
triadic
#D97FDC #DCD97F #7FDCD9
tetradic
#D97FDC #DCAB7F #82DC7F #7FB0DC
square
#D97FDC #DCAB7F #82DC7F #7FB0DC
split-complementary
#D97FDC #B0DC7F #7FDCAB
monochromatic
#AC30B0 #CB4FCF #D97FDC #E7AFE9 #F6DFF6

Accessibility & contrast

On white

2.62
#D97FDC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.02
#D97FDC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97FDC
8.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97FDC#FFFFFF#000000##000000
##D97FDC1.002.628.028.02
#FFFFFF2.621.0021.0021.00
#0000008.0221.001.001.00
##0000008.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7699DF
Deuteranopia (green-blind)
#8FA4D9
Tritanopia (blue-blind)
#DE89A3
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #d97fdc;
/* rgb */ color: rgb(217, 127, 220);
/* oklch */ color: oklch(72.5% 0.161 325.9);
Tailwind
colors: {
  custom: {
    50: '#e6a6e7',
    500: '#d97fdc',
    950: '#000000',
  },
}
SCSS
$custom: #d97fdc;
$custom-light: #e6a6e7;
$custom-dark: #000000;
JSON
{
  "hex": "#d97fdc",
  "rgb": {
    "r": 217,
    "g": 127,
    "b": 220
  },
  "hsl": {
    "h": 298.065,
    "s": 57.055,
    "l": 68.039
  },
  "oklch": {
    "l": 0.72519,
    "c": 0.16148,
    "h": 325.9
  },
  "luminance": 0.35098
}

Semantic roles & 50–950 ramp

primary
#D97FDC
secondary
#CEEACD
accent
#C52126
background
#FEFAFE
surface
#FDF4FC
border
#D5CED5
text
#161016
muted
#847F84

Preview Lab

Preview with #D97FDC

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

Preview Lab → · Contrast checker → · Palette generator →

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