#D786EA#D786EA

#D786EA is a light, vivid purple. Relative luminance 0.374; OKLCH L 74.0% C 0.163 H 319.8°. Best body text is #000000 at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#D786EA
RGBrgb(215, 134, 234)
HSLhsl(289, 70%, 72%)
HSVhsv(289, 43%, 92%)
CMYKcmyk(8.1%, 42.7%, 0%, 8.2%)
CIE-LABlab(67.61, 46.99, -38.07)
CIE-LCHlch(67.61, 60.47, 320.99°)
OKLaboklab(73.99% 0.1242 -0.1049)
OKLCHoklch(73.99% 0.163 319.8)
XYZxyz(51.3988, 37.4395, 82.3450)
Luminance0.3744 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D786EA #99EA86
analogous
#A586EA #D786EA #EA86CB
triadic
#D786EA #EAD786 #86EAD7
tetradic
#D786EA #EAA586 #99EA86 #86CBEA
square
#D786EA #EAA586 #99EA86 #86CBEA
split-complementary
#D786EA #CBEA86 #86EAA5
monochromatic
#B024D1 #C652E1 #D786EA #E8BAF3 #F6E5FA

Accessibility & contrast

On white

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

On black

8.49
#D786EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D786EA
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D786EA#FFFFFF#000000##000000
##D786EA1.002.478.498.49
#FFFFFF2.471.0021.0021.00
#0000008.4921.001.001.00
##0000008.4921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #d786ea;
/* rgb */ color: rgb(215, 134, 234);
/* oklch */ color: oklch(74.0% 0.163 319.8);
Tailwind
colors: {
  custom: {
    50: '#e5abf1',
    500: '#d786ea',
    950: '#000000',
  },
}
SCSS
$custom: #d786ea;
$custom-light: #e5abf1;
$custom-dark: #000000;
JSON
{
  "hex": "#d786ea",
  "rgb": {
    "r": 215,
    "g": 134,
    "b": 234
  },
  "hsl": {
    "h": 288.6,
    "s": 70.423,
    "l": 72.157
  },
  "oklch": {
    "l": 0.73991,
    "c": 0.16252,
    "h": 319.8
  },
  "luminance": 0.37438
}

Semantic roles & 50–950 ramp

primary
#D786EA
secondary
#DEF2D9
accent
#D21337
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#161016
muted
#847F84

Preview Lab

Preview with #D786EA

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

Preview Lab → · Contrast checker → · Palette generator →

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