#D978F8#D978F8

#D978F8 is a light, highly saturated purple. Relative luminance 0.350; OKLCH L 72.8% C 0.200 H 317.4°. Best body text is #000000 at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#D978F8
RGBrgb(217, 120, 248)
HSLhsl(285, 90%, 72%)
HSVhsv(285, 52%, 97%)
CMYKcmyk(12.5%, 51.6%, 0%, 2.7%)
CIE-LABlab(65.72, 57.41, -48.72)
CIE-LCHlch(65.72, 75.29, 319.68°)
OKLaboklab(72.85% 0.1475 -0.1355)
OKLCHoklch(72.85% 0.2 317.4)
XYZxyz(52.2726, 34.9638, 92.7839)
Luminance0.3496 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D978F8 #97F878
analogous
#9978F8 #D978F8 #F878D7
triadic
#D978F8 #F8D978 #78F8D9
tetradic
#D978F8 #F89978 #97F878 #78D7F8
square
#D978F8 #F89978 #97F878 #78D7F8
split-complementary
#D978F8 #D7F878 #78F899
monochromatic
#B40CE9 #C93EF5 #D978F8 #E9B2FB #F7E2FD

Accessibility & contrast

On white

2.63
#D978F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.99
#D978F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D978F8
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D978F8#FFFFFF#000000##000000
##D978F81.002.637.997.99
#FFFFFF2.631.0021.0021.00
#0000007.9921.001.001.00
##0000007.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#5E99FC
Deuteranopia (green-blind)
#7CA3F5
Tritanopia (blue-blind)
#D88BAD
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #d978f8;
/* rgb */ color: rgb(217, 120, 248);
/* oklch */ color: oklch(72.8% 0.200 317.4);
Tailwind
colors: {
  custom: {
    50: '#e7a2fb',
    500: '#d978f8',
    950: '#000000',
  },
}
SCSS
$custom: #d978f8;
$custom-light: #e7a2fb;
$custom-dark: #000000;
JSON
{
  "hex": "#d978f8",
  "rgb": {
    "r": 217,
    "g": 120,
    "b": 248
  },
  "hsl": {
    "h": 285.469,
    "s": 90.141,
    "l": 72.157
  },
  "oklch": {
    "l": 0.72849,
    "c": 0.20029,
    "h": 317.4
  },
  "luminance": 0.34962
}

Semantic roles & 50–950 ramp

primary
#D978F8
secondary
#DDF6D5
accent
#E60038
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F17
muted
#847F85

Preview Lab

Preview with #D978F8

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

Preview Lab → · Contrast checker → · Palette generator →

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