#D978CF#D978CF

#D978CF is a light, vivid purple. Relative luminance 0.327; OKLCH L 70.9% C 0.161 H 331.0°. Best body text is #000000 at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#D978CF
RGBrgb(217, 120, 207)
HSLhsl(306, 56%, 66%)
HSVhsv(306, 45%, 85%)
CMYKcmyk(0%, 44.7%, 4.6%, 14.9%)
CIE-LABlab(63.91, 49.80, -28.77)
CIE-LCHlch(63.91, 57.51, 329.99°)
OKLaboklab(70.91% 0.1411 -0.0782)
OKLCHoklch(70.91% 0.161 331)
XYZxyz(46.5938, 32.6922, 62.8754)
Luminance0.3269 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D978CF #78D982
analogous
#B278D9 #D978CF #D9789E
triadic
#D978CF #CFD978 #78CFD9
tetradic
#D978CF #D9B278 #78D982 #789ED9
square
#D978CF #D9B278 #78D982 #789ED9
split-complementary
#D978CF #9ED978 #78D9B2
monochromatic
#A72F9B #CC48BE #D978CF #E6A8E0 #F4D8F1

Accessibility & contrast

On white

2.79
#D978CF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.54
#D978CF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D978CF
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D978CF#FFFFFF#000000##000000
##D978CF1.002.797.547.54
#FFFFFF2.791.0021.0021.00
#0000007.5421.001.001.00
##0000007.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7492D2
Deuteranopia (green-blind)
#8FA0CC
Tritanopia (blue-blind)
#E07F9A
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #d978cf;
/* rgb */ color: rgb(217, 120, 207);
/* oklch */ color: oklch(70.9% 0.161 331.0);
Tailwind
colors: {
  custom: {
    50: '#e6a2de',
    500: '#d978cf',
    950: '#000000',
  },
}
SCSS
$custom: #d978cf;
$custom-light: #e6a2de;
$custom-dark: #000000;
JSON
{
  "hex": "#d978cf",
  "rgb": {
    "r": 217,
    "g": 120,
    "b": 207
  },
  "hsl": {
    "h": 306.186,
    "s": 56.069,
    "l": 66.078
  },
  "oklch": {
    "l": 0.70915,
    "c": 0.16135,
    "h": 331
  },
  "luminance": 0.3269
}

Semantic roles & 50–950 ramp

primary
#D978CF
secondary
#C6E6CA
accent
#C43322
background
#FEFAFD
surface
#FDF4FB
border
#D5CED4
text
#160F15
muted
#847F83

Preview Lab

Preview with #D978CF

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

Preview Lab → · Contrast checker → · Palette generator →

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