#D78DEC#D78DEC

#D78DEC is a light, vivid purple. Relative luminance 0.396; OKLCH L 75.2% C 0.153 H 318.6°. Best body text is #000000 at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#D78DEC
RGBrgb(215, 141, 236)
HSLhsl(287, 71%, 74%)
HSVhsv(287, 40%, 93%)
CMYKcmyk(8.9%, 40.3%, 0%, 7.5%)
CIE-LABlab(69.15, 43.70, -36.76)
CIE-LCHlch(69.15, 57.11, 319.93°)
OKLaboklab(75.18% 0.1146 -0.1012)
OKLCHoklch(75.18% 0.153 318.6)
XYZxyz(52.6875, 39.5545, 84.2000)
Luminance0.3955 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D78DEC #A2EC8D
analogous
#A88DEC #D78DEC #EC8DD2
triadic
#D78DEC #ECD78D #8DECD7
tetradic
#D78DEC #ECA88D #A2EC8D #8DD2EC
square
#D78DEC #ECA88D #A2EC8D #8DD2EC
split-complementary
#D78DEC #D2EC8D #8DECA8
monochromatic
#B224DA #C559E3 #D78DEC #E9C1F5 #F6E5FB

Accessibility & contrast

On white

2.36
#D78DEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.91
#D78DEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D78DEC
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D78DEC#FFFFFF#000000##000000
##D78DEC1.002.368.918.91
#FFFFFF2.361.0021.0021.00
#0000008.9121.001.001.00
##0000008.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7FA4EF
Deuteranopia (green-blind)
#92ABE9
Tritanopia (blue-blind)
#D799B1
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #d78dec;
/* rgb */ color: rgb(215, 141, 236);
/* oklch */ color: oklch(75.2% 0.153 318.6);
Tailwind
colors: {
  custom: {
    50: '#e5b0f2',
    500: '#d78dec',
    950: '#000000',
  },
}
SCSS
$custom: #d78dec;
$custom-light: #e5b0f2;
$custom-dark: #000000;
JSON
{
  "hex": "#d78dec",
  "rgb": {
    "r": 215,
    "g": 141,
    "b": 236
  },
  "hsl": {
    "h": 286.737,
    "s": 71.429,
    "l": 73.922
  },
  "oklch": {
    "l": 0.75177,
    "c": 0.15286,
    "h": 318.6
  },
  "luminance": 0.39553
}

Semantic roles & 50–950 ramp

primary
#D78DEC
secondary
#DEF2D9
accent
#D3123D
background
#FEFAFE
surface
#FCF5FD
border
#D5CFD5
text
#161017
muted
#847F85

Preview Lab

Preview with #D78DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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