#D978CD#D978CD

#D978CD is a light, vivid purple. Relative luminance 0.326; OKLCH L 70.8% C 0.160 H 331.8°. Best body text is #000000 at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#D978CD
RGBrgb(217, 120, 205)
HSLhsl(307, 56%, 66%)
HSVhsv(307, 45%, 85%)
CMYKcmyk(0%, 44.7%, 5.5%, 14.9%)
CIE-LABlab(63.83, 49.46, -27.77)
CIE-LCHlch(63.83, 56.72, 330.69°)
OKLaboklab(70.83% 0.1407 -0.0754)
OKLCHoklch(70.83% 0.16 331.8)
XYZxyz(46.3508, 32.5951, 61.5958)
Luminance0.3259 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D978CD #78D984
analogous
#B478D9 #D978CD #D9789C
triadic
#D978CD #CDD978 #78CDD9
tetradic
#D978CD #D9B478 #78D984 #789CD9
square
#D978CD #D9B478 #78D984 #789CD9
split-complementary
#D978CD #9CD978 #78D9B4
monochromatic
#A72F99 #CC48BB #D978CD #E6A8DF #F4D8F0

Accessibility & contrast

On white

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

On black

7.52
#D978CD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D978CD
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D978CD#FFFFFF#000000##000000
##D978CD1.002.797.527.52
#FFFFFF2.791.0021.0021.00
#0000007.5221.001.001.00
##0000007.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#7592D0
Deuteranopia (green-blind)
#90A0CA
Tritanopia (blue-blind)
#E07F99
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #d978cd;
/* rgb */ color: rgb(217, 120, 205);
/* oklch */ color: oklch(70.8% 0.160 331.8);
Tailwind
colors: {
  custom: {
    50: '#e6a2dc',
    500: '#d978cd',
    950: '#000000',
  },
}
SCSS
$custom: #d978cd;
$custom-light: #e6a2dc;
$custom-dark: #000000;
JSON
{
  "hex": "#d978cd",
  "rgb": {
    "r": 217,
    "g": 120,
    "b": 205
  },
  "hsl": {
    "h": 307.423,
    "s": 56.069,
    "l": 66.078
  },
  "oklch": {
    "l": 0.7083,
    "c": 0.15962,
    "h": 331.8
  },
  "luminance": 0.32592
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D978CD

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

Preview Lab → · Contrast checker → · Palette generator →

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