#D97FD7#D97FD7

#D97FD7 is a light, vivid purple. Relative luminance 0.348; OKLCH L 72.3% C 0.157 H 327.8°. Best body text is #000000 at 7.97:1 contrast (WCAG AA passes).

Color values

HEX#D97FD7
RGBrgb(217, 127, 215)
HSLhsl(301, 54%, 67%)
HSVhsv(301, 41%, 85%)
CMYKcmyk(0%, 41.5%, 0.9%, 14.9%)
CIE-LABlab(65.62, 47.64, -30.60)
CIE-LCHlch(65.62, 56.62, 327.29°)
OKLaboklab(72.3% 0.1327 -0.0834)
OKLCHoklch(72.3% 0.157 327.8)
XYZxyz(48.4695, 34.8391, 68.4483)
Luminance0.3484 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97FD7 #7FD981
analogous
#AE7FD9 #D97FD7 #D97FAA
triadic
#D97FD7 #D7D97F #7FD7D9
tetradic
#D97FD7 #D9AE7F #7FD981 #7FAAD9
square
#D97FD7 #D9AE7F #7FD981 #7FAAD9
split-complementary
#D97FD7 #AAD97F #7FD9AE
monochromatic
#AB33A8 #CB50C8 #D97FD7 #E7AEE6 #F5DDF4

Accessibility & contrast

On white

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

On black

7.97
#D97FD7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97FD7
7.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97FD7#FFFFFF#000000##000000
##D97FD71.002.647.977.97
#FFFFFF2.641.0021.0021.00
#0000007.9721.001.001.00
##0000007.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7998DA
Deuteranopia (green-blind)
#91A4D4
Tritanopia (blue-blind)
#DE87A1
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #d97fd7;
/* rgb */ color: rgb(217, 127, 215);
/* oklch */ color: oklch(72.3% 0.157 327.8);
Tailwind
colors: {
  custom: {
    50: '#e6a6e3',
    500: '#d97fd7',
    950: '#000000',
  },
}
SCSS
$custom: #d97fd7;
$custom-light: #e6a6e3;
$custom-dark: #000000;
JSON
{
  "hex": "#d97fd7",
  "rgb": {
    "r": 217,
    "g": 127,
    "b": 215
  },
  "hsl": {
    "h": 301.333,
    "s": 54.217,
    "l": 67.451
  },
  "oklch": {
    "l": 0.723,
    "c": 0.15678,
    "h": 327.8
  },
  "luminance": 0.34837
}

Semantic roles & 50–950 ramp

primary
#D97FD7
secondary
#CCE8CC
accent
#C22724
background
#FEFAFD
surface
#FDF4FB
border
#D5CED4
text
#161015
muted
#847F83

Preview Lab

Preview with #D97FD7

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

Preview Lab → · Contrast checker → · Palette generator →

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