#D978EC#D978EC

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

Color values

HEX#D978EC
RGBrgb(217, 120, 236)
HSLhsl(290, 75%, 70%)
HSVhsv(290, 49%, 93%)
CMYKcmyk(8.1%, 49.2%, 0%, 7.5%)
CIE-LABlab(65.15, 55.08, -42.99)
CIE-LCHlch(65.15, 69.87, 322.03°)
OKLaboklab(72.25% 0.1461 -0.1189)
OKLCHoklch(72.25% 0.188 320.9)
XYZxyz(50.4703, 34.2428, 83.2916)
Luminance0.3424 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D978EC #8BEC78
analogous
#9F78EC #D978EC #EC78C5
triadic
#D978EC #ECD978 #78ECD9
tetradic
#D978EC #EC9F78 #8BEC78 #78C5EC
square
#D978EC #EC9F78 #8BEC78 #78C5EC
split-complementary
#D978EC #C5EC78 #78EC9F
monochromatic
#B01DCD #CA42E4 #D978EC #E8AEF4 #F7E3FB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##D978EC#FFFFFF#000000##000000
##D978EC1.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)
#6697F0
Deuteranopia (green-blind)
#83A2E9
Tritanopia (blue-blind)
#DB87A7
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #d978ec;
/* rgb */ color: rgb(217, 120, 236);
/* oklch */ color: oklch(72.2% 0.188 320.9);
Tailwind
colors: {
  custom: {
    50: '#e7a2f2',
    500: '#d978ec',
    950: '#000000',
  },
}
SCSS
$custom: #d978ec;
$custom-light: #e7a2f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d978ec",
  "rgb": {
    "r": 217,
    "g": 120,
    "b": 236
  },
  "hsl": {
    "h": 290.172,
    "s": 75.325,
    "l": 69.804
  },
  "oklch": {
    "l": 0.72247,
    "c": 0.18839,
    "h": 320.9
  },
  "luminance": 0.34241
}

Semantic roles & 50–950 ramp

primary
#D978EC
secondary
#D5F0D0
accent
#D70E2F
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D978EC

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

Preview Lab → · Contrast checker → · Palette generator →

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