#D978EB#D978EB

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

Color values

HEX#D978EB
RGBrgb(217, 120, 235)
HSLhsl(291, 74%, 70%)
HSVhsv(291, 49%, 92%)
CMYKcmyk(7.7%, 48.9%, 0%, 7.8%)
CIE-LABlab(65.11, 54.89, -42.51)
CIE-LCHlch(65.11, 69.43, 322.25°)
OKLaboklab(72.2% 0.146 -0.1175)
OKLCHoklch(72.2% 0.187 321.2)
XYZxyz(50.3254, 34.1849, 82.5286)
Luminance0.3418 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D978EB #8AEB78
analogous
#A078EB #D978EB #EB78C3
triadic
#D978EB #EBD978 #78EBD9
tetradic
#D978EB #EBA078 #8AEB78 #78C3EB
square
#D978EB #EBA078 #8AEB78 #78C3EB
split-complementary
#D978EB #C3EB78 #78EBA0
monochromatic
#B01ECB #CA43E3 #D978EB #E8ADF3 #F7E3FB

Accessibility & contrast

On white

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

On black

7.84
#D978EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D978EB
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D978EB#FFFFFF#000000##000000
##D978EB1.002.687.847.84
#FFFFFF2.681.0021.0021.00
#0000007.8421.001.001.00
##0000007.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6697EF
Deuteranopia (green-blind)
#83A2E8
Tritanopia (blue-blind)
#DB87A7
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #d978eb;
/* rgb */ color: rgb(217, 120, 235);
/* oklch */ color: oklch(72.2% 0.187 321.2);
Tailwind
colors: {
  custom: {
    50: '#e7a2f2',
    500: '#d978eb',
    950: '#000000',
  },
}
SCSS
$custom: #d978eb;
$custom-light: #e7a2f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d978eb",
  "rgb": {
    "r": 217,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 290.609,
    "s": 74.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.72198,
    "c": 0.18742,
    "h": 321.2
  },
  "luminance": 0.34183
}

Semantic roles & 50–950 ramp

primary
#D978EB
secondary
#D4F0CF
accent
#D60F2E
background
#FEFAFE
surface
#FDF4FD
border
#D5CED5
text
#160F17
muted
#847F85

Preview Lab

Preview with #D978EB

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

Preview Lab → · Contrast checker → · Palette generator →

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