#D97FC7#D97FC7

#D97FC7 is a light, vivid pink. Relative luminance 0.341; OKLCH L 71.6% C 0.143 H 334.7°. Best body text is #000000 at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#D97FC7
RGBrgb(217, 127, 199)
HSLhsl(312, 54%, 67%)
HSVhsv(312, 41%, 85%)
CMYKcmyk(0%, 41.5%, 8.3%, 14.9%)
CIE-LABlab(65.01, 44.85, -22.59)
CIE-LCHlch(65.01, 50.22, 333.26°)
OKLaboklab(71.64% 0.129 -0.0609)
OKLCHoklch(71.64% 0.143 334.7)
XYZxyz(46.5133, 34.0566, 58.1454)
Luminance0.3405 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97FC7 #7FD991
analogous
#BE7FD9 #D97FC7 #D97F9A
triadic
#D97FC7 #C7D97F #7FC7D9
tetradic
#D97FC7 #D9BE7F #7FD991 #7F9AD9
square
#D97FC7 #D9BE7F #7FD991 #7F9AD9
split-complementary
#D97FC7 #9AD97F #7FD9BE
monochromatic
#AB3393 #CB50B2 #D97FC7 #E7AEDC #F5DDF0

Accessibility & contrast

On white

2.69
#D97FC7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.81
#D97FC7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97FC7
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97FC7#FFFFFF#000000##000000
##D97FC71.002.697.817.81
#FFFFFF2.691.0021.0021.00
#0000007.8121.001.001.00
##0000007.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7F96CA
Deuteranopia (green-blind)
#97A3C4
Tritanopia (blue-blind)
#E1839A
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #d97fc7;
/* rgb */ color: rgb(217, 127, 199);
/* oklch */ color: oklch(71.6% 0.143 334.7);
Tailwind
colors: {
  custom: {
    50: '#e6a6d8',
    500: '#d97fc7',
    950: '#000000',
  },
}
SCSS
$custom: #d97fc7;
$custom-light: #e6a6d8;
$custom-dark: #000000;
JSON
{
  "hex": "#d97fc7",
  "rgb": {
    "r": 217,
    "g": 127,
    "b": 199
  },
  "hsl": {
    "h": 312,
    "s": 54.217,
    "l": 67.451
  },
  "oklch": {
    "l": 0.71636,
    "c": 0.14263,
    "h": 334.7
  },
  "luminance": 0.34054
}

Semantic roles & 50–950 ramp

primary
#D97FC7
secondary
#CCE8D1
accent
#C24324
background
#FEFAFD
surface
#FDF4FA
border
#D5CED3
text
#160F14
muted
#847F83

Preview Lab

Preview with #D97FC7

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

Preview Lab → · Contrast checker → · Palette generator →

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