#D97FCB#D97FCB

#D97FCB is a light, vivid purple. Relative luminance 0.342; OKLCH L 71.8% C 0.146 H 332.9°. Best body text is #000000 at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#D97FCB
RGBrgb(217, 127, 203)
HSLhsl(309, 54%, 67%)
HSVhsv(309, 41%, 85%)
CMYKcmyk(0%, 41.5%, 6.5%, 14.9%)
CIE-LABlab(65.16, 45.53, -24.61)
CIE-LCHlch(65.16, 51.76, 331.61°)
OKLaboklab(71.8% 0.13 -0.0665)
OKLCHoklch(71.8% 0.146 332.9)
XYZxyz(46.9838, 34.2448, 60.6235)
Luminance0.3424 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D97FCB #7FD98D
analogous
#BA7FD9 #D97FCB #D97F9E
triadic
#D97FCB #CBD97F #7FCBD9
tetradic
#D97FCB #D9BA7F #7FD98D #7F9ED9
square
#D97FCB #D9BA7F #7FD98D #7F9ED9
split-complementary
#D97FCB #9ED97F #7FD9BA
monochromatic
#AB3398 #CB50B8 #D97FCB #E7AEDE #F5DDF1

Accessibility & contrast

On white

2.68
#D97FCB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.85
#D97FCB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D97FCB
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D97FCB#FFFFFF#000000##000000
##D97FCB1.002.687.857.85
#FFFFFF2.681.0021.0021.00
#0000007.8521.001.001.00
##0000007.8521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d97fcb;
/* rgb */ color: rgb(217, 127, 203);
/* oklch */ color: oklch(71.8% 0.146 332.9);
Tailwind
colors: {
  custom: {
    50: '#e6a6db',
    500: '#d97fcb',
    950: '#000000',
  },
}
SCSS
$custom: #d97fcb;
$custom-light: #e6a6db;
$custom-dark: #000000;
JSON
{
  "hex": "#d97fcb",
  "rgb": {
    "r": 217,
    "g": 127,
    "b": 203
  },
  "hsl": {
    "h": 309.333,
    "s": 54.217,
    "l": 67.451
  },
  "oklch": {
    "l": 0.71797,
    "c": 0.14602,
    "h": 332.9
  },
  "luminance": 0.34242
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D97FCB

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

Preview Lab → · Contrast checker → · Palette generator →

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