#D978DD#D978DD

#D978DD is a light, vivid purple. Relative luminance 0.334; OKLCH L 71.5% C 0.174 H 325.7°. Best body text is #000000 at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#D978DD
RGBrgb(217, 120, 221)
HSLhsl(298, 60%, 67%)
HSVhsv(298, 46%, 87%)
CMYKcmyk(1.8%, 45.7%, 0%, 13.3%)
CIE-LABlab(64.49, 52.29, -35.70)
CIE-LCHlch(64.49, 63.31, 325.67°)
OKLaboklab(71.54% 0.1439 -0.0979)
OKLCHoklch(71.54% 0.174 325.7)
XYZxyz(48.3818, 33.4075, 72.2924)
Luminance0.3341 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D978DD #7CDD78
analogous
#A778DD #D978DD #DD78AF
triadic
#D978DD #DDD978 #78DDD9
tetradic
#D978DD #DDA778 #7CDD78 #78AFDD
square
#D978DD #DDA778 #7CDD78 #78AFDD
split-complementary
#D978DD #AFDD78 #78DDA7
monochromatic
#A92CAF #CB47D1 #D978DD #E7A9E9 #F5DAF6

Accessibility & contrast

On white

2.73
#D978DD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.68
#D978DD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D978DD
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D978DD#FFFFFF#000000##000000
##D978DD1.002.737.687.68
#FFFFFF2.731.0021.0021.00
#0000007.6821.001.001.00
##0000007.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E95E0
Deuteranopia (green-blind)
#89A1DA
Tritanopia (blue-blind)
#DE83A0
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #d978dd;
/* rgb */ color: rgb(217, 120, 221);
/* oklch */ color: oklch(71.5% 0.174 325.7);
Tailwind
colors: {
  custom: {
    50: '#e7a2e8',
    500: '#d978dd',
    950: '#000000',
  },
}
SCSS
$custom: #d978dd;
$custom-light: #e7a2e8;
$custom-dark: #000000;
JSON
{
  "hex": "#d978dd",
  "rgb": {
    "r": 217,
    "g": 120,
    "b": 221
  },
  "hsl": {
    "h": 297.624,
    "s": 59.763,
    "l": 66.863
  },
  "oklch": {
    "l": 0.71536,
    "c": 0.17403,
    "h": 325.7
  },
  "luminance": 0.33405
}

Semantic roles & 50–950 ramp

primary
#D978DD
secondary
#CAE9C8
accent
#C71E25
background
#FEFAFE
surface
#FDF4FC
border
#D5CED5
text
#160F16
muted
#847F84

Preview Lab

Preview with #D978DD

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

Preview Lab → · Contrast checker → · Palette generator →

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