#D786EC#D786EC

#D786EC is a light, vivid purple. Relative luminance 0.376; OKLCH L 74.1% C 0.165 H 319.2°. Best body text is #000000 at 8.51:1 contrast (WCAG AA passes).

Color values

HEX#D786EC
RGBrgb(215, 134, 236)
HSLhsl(288, 73%, 73%)
HSVhsv(288, 43%, 93%)
CMYKcmyk(8.9%, 43.2%, 0%, 7.5%)
CIE-LABlab(67.69, 47.38, -39.04)
CIE-LCHlch(67.69, 61.39, 320.51°)
OKLaboklab(74.08% 0.1245 -0.1076)
OKLCHoklch(74.08% 0.165 319.2)
XYZxyz(51.6878, 37.5551, 83.8667)
Luminance0.3755 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D786EC #9BEC86
analogous
#A486EC #D786EC #EC86CE
triadic
#D786EC #ECD786 #86ECD7
tetradic
#D786EC #ECA486 #9BEC86 #86CEEC
square
#D786EC #ECA486 #9BEC86 #86CEEC
split-complementary
#D786EC #CEEC86 #86ECA4
monochromatic
#B122D6 #C651E4 #D786EC #E8BBF4 #F6E5FB

Accessibility & contrast

On white

2.47
#D786EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.51
#D786EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D786EC
8.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D786EC#FFFFFF#000000##000000
##D786EC1.002.478.518.51
#FFFFFF2.471.0021.0021.00
#0000008.5121.001.001.00
##0000008.5121.001.001.00

Color blindness preview

Protanopia (red-blind)
#769FF0
Deuteranopia (green-blind)
#8CA8E9
Tritanopia (blue-blind)
#D893AE
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #d786ec;
/* rgb */ color: rgb(215, 134, 236);
/* oklch */ color: oklch(74.1% 0.165 319.2);
Tailwind
colors: {
  custom: {
    50: '#e5abf2',
    500: '#d786ec',
    950: '#000000',
  },
}
SCSS
$custom: #d786ec;
$custom-light: #e5abf2;
$custom-dark: #000000;
JSON
{
  "hex": "#d786ec",
  "rgb": {
    "r": 215,
    "g": 134,
    "b": 236
  },
  "hsl": {
    "h": 287.647,
    "s": 72.857,
    "l": 72.549
  },
  "oklch": {
    "l": 0.74083,
    "c": 0.16459,
    "h": 319.2
  },
  "luminance": 0.37553
}

Semantic roles & 50–950 ramp

primary
#D786EC
secondary
#DEF3D8
accent
#D51139
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#161017
muted
#847F85

Preview Lab

Preview with #D786EC

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

Preview Lab → · Contrast checker → · Palette generator →

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