#D978FC#D978FC

#D978FC is a light, highly saturated purple. Relative luminance 0.352; OKLCH L 73.1% C 0.204 H 316.4°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#D978FC
RGBrgb(217, 120, 252)
HSLhsl(284, 96%, 73%)
HSVhsv(284, 52%, 99%)
CMYKcmyk(13.9%, 52.4%, 0%, 1.2%)
CIE-LABlab(65.92, 58.20, -50.60)
CIE-LCHlch(65.92, 77.12, 318.99°)
OKLaboklab(73.06% 0.1479 -0.1409)
OKLCHoklch(73.06% 0.204 316.4)
XYZxyz(52.8998, 35.2147, 96.0871)
Luminance0.3521 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D978FC #9BFC78
analogous
#9778FC #D978FC #FC78DD
triadic
#D978FC #FCD978 #78FCD9
tetradic
#D978FC #FC9778 #9BFC78 #78DDFC
square
#D978FC #FC9778 #9BFC78 #78DDFC
split-complementary
#D978FC #DDFC78 #78FC97
monochromatic
#B505F4 #C83CFB #D978FC #EAB4FD #F7E1FE

Accessibility & contrast

On white

2.61
#D978FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.04
#D978FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D978FC
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D978FC#FFFFFF#000000##000000
##D978FC1.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#5B9AFF
Deuteranopia (green-blind)
#7AA3F9
Tritanopia (blue-blind)
#D78CAF
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #d978fc;
/* rgb */ color: rgb(217, 120, 252);
/* oklch */ color: oklch(73.1% 0.204 316.4);
Tailwind
colors: {
  custom: {
    50: '#e7a2fe',
    500: '#d978fc',
    950: '#000000',
  },
}
SCSS
$custom: #d978fc;
$custom-light: #e7a2fe;
$custom-dark: #000000;
JSON
{
  "hex": "#d978fc",
  "rgb": {
    "r": 217,
    "g": 120,
    "b": 252
  },
  "hsl": {
    "h": 284.091,
    "s": 95.652,
    "l": 72.941
  },
  "oklch": {
    "l": 0.73056,
    "c": 0.2043,
    "h": 316.4
  },
  "luminance": 0.35213
}

Semantic roles & 50–950 ramp

primary
#D978FC
secondary
#DDF7D4
accent
#E6003D
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#160F18
muted
#847F86

Preview Lab

Preview with #D978FC

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

Preview Lab → · Contrast checker → · Palette generator →

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