#D978D2#D978D2

#D978D2 is a light, vivid purple. Relative luminance 0.328; OKLCH L 71.0% C 0.164 H 329.8°. Best body text is #000000 at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#D978D2
RGBrgb(217, 120, 210)
HSLhsl(304, 56%, 66%)
HSVhsv(304, 45%, 85%)
CMYKcmyk(0%, 44.7%, 3.2%, 14.9%)
CIE-LABlab(64.03, 50.32, -30.27)
CIE-LCHlch(64.03, 58.72, 328.98°)
OKLaboklab(71.05% 0.1418 -0.0824)
OKLCHoklch(71.05% 0.164 329.8)
XYZxyz(46.9640, 32.8403, 64.8254)
Luminance0.3284 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D978D2 #78D97F
analogous
#AF78D9 #D978D2 #D978A1
triadic
#D978D2 #D2D978 #78D2D9
tetradic
#D978D2 #D9AF78 #78D97F #78A1D9
square
#D978D2 #D9AF78 #78D97F #78A1D9
split-complementary
#D978D2 #A1D978 #78D9AF
monochromatic
#A72F9F #CC48C2 #D978D2 #E6A8E2 #F4D8F2

Accessibility & contrast

On white

2.77
#D978D2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.57
#D978D2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D978D2
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D978D2#FFFFFF#000000##000000
##D978D21.002.777.577.57
#FFFFFF2.771.0021.0021.00
#0000007.5721.001.001.00
##0000007.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#7393D5
Deuteranopia (green-blind)
#8EA0CF
Tritanopia (blue-blind)
#DF809B
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #d978d2;
/* rgb */ color: rgb(217, 120, 210);
/* oklch */ color: oklch(71.0% 0.164 329.8);
Tailwind
colors: {
  custom: {
    50: '#e7a2e0',
    500: '#d978d2',
    950: '#000000',
  },
}
SCSS
$custom: #d978d2;
$custom-light: #e7a2e0;
$custom-dark: #000000;
JSON
{
  "hex": "#d978d2",
  "rgb": {
    "r": 217,
    "g": 120,
    "b": 210
  },
  "hsl": {
    "h": 304.33,
    "s": 56.069,
    "l": 66.078
  },
  "oklch": {
    "l": 0.71045,
    "c": 0.16399,
    "h": 329.8
  },
  "luminance": 0.32838
}

Semantic roles & 50–950 ramp

primary
#D978D2
secondary
#C6E6C9
accent
#C42E22
background
#FEFAFD
surface
#FDF4FB
border
#D5CED4
text
#160F15
muted
#847F83

Preview Lab

Preview with #D978D2

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

Preview Lab → · Contrast checker → · Palette generator →

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