#D786EB#D786EB

#D786EB is a light, vivid purple. Relative luminance 0.375; OKLCH L 74.0% C 0.164 H 319.5°. Best body text is #000000 at 8.50:1 contrast (WCAG AA passes).

Color values

HEX#D786EB
RGBrgb(215, 134, 235)
HSLhsl(288, 72%, 72%)
HSVhsv(288, 43%, 92%)
CMYKcmyk(8.5%, 43%, 0%, 7.8%)
CIE-LABlab(67.65, 47.18, -38.55)
CIE-LCHlch(67.65, 60.93, 320.75°)
OKLaboklab(74.04% 0.1243 -0.1063)
OKLCHoklch(74.04% 0.164 319.5)
XYZxyz(51.5429, 37.4972, 83.1037)
Luminance0.3750 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D786EB #9AEB86
analogous
#A586EB #D786EB #EB86CC
triadic
#D786EB #EBD786 #86EBD7
tetradic
#D786EB #EBA586 #9AEB86 #86CCEB
square
#D786EB #EBA586 #9AEB86 #86CCEB
split-complementary
#D786EB #CCEB86 #86EBA5
monochromatic
#B123D4 #C651E2 #D786EB #E8BBF4 #F6E5FB

Accessibility & contrast

On white

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

On black

8.50
#D786EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D786EB
8.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D786EB#FFFFFF#000000##000000
##D786EB1.002.478.508.50
#FFFFFF2.471.0021.0021.00
#0000008.5021.001.001.00
##0000008.5021.001.001.00

Color blindness preview

Protanopia (red-blind)
#779FEF
Deuteranopia (green-blind)
#8DA8E8
Tritanopia (blue-blind)
#D893AD
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #d786eb;
/* rgb */ color: rgb(215, 134, 235);
/* oklch */ color: oklch(74.0% 0.164 319.5);
Tailwind
colors: {
  custom: {
    50: '#e5abf2',
    500: '#d786eb',
    950: '#000000',
  },
}
SCSS
$custom: #d786eb;
$custom-light: #e5abf2;
$custom-dark: #000000;
JSON
{
  "hex": "#d786eb",
  "rgb": {
    "r": 215,
    "g": 134,
    "b": 235
  },
  "hsl": {
    "h": 288.119,
    "s": 71.631,
    "l": 72.353
  },
  "oklch": {
    "l": 0.74037,
    "c": 0.16356,
    "h": 319.5
  },
  "luminance": 0.37495
}

Semantic roles & 50–950 ramp

primary
#D786EB
secondary
#DEF2D9
accent
#D41238
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#161017
muted
#847F85

Preview Lab

Preview with #D786EB

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

Preview Lab → · Contrast checker → · Palette generator →

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