#D786ED#D786ED

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

Color values

HEX#D786ED
RGBrgb(215, 134, 237)
HSLhsl(287, 74%, 73%)
HSVhsv(287, 43%, 93%)
CMYKcmyk(9.3%, 43.5%, 0%, 7.1%)
CIE-LABlab(67.73, 47.58, -39.52)
CIE-LCHlch(67.73, 61.85, 320.28°)
OKLaboklab(74.13% 0.1247 -0.109)
OKLCHoklch(74.13% 0.166 318.8)
XYZxyz(51.8335, 37.6134, 84.6340)
Luminance0.3761 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D786ED #9CED86
analogous
#A386ED #D786ED #ED86D0
triadic
#D786ED #EDD786 #86EDD7
tetradic
#D786ED #EDA386 #9CED86 #86D0ED
square
#D786ED #EDA386 #9CED86 #86D0ED
split-complementary
#D786ED #D0ED86 #86EDA3
monochromatic
#B120D8 #C551E5 #D786ED #E9BBF5 #F6E4FB

Accessibility & contrast

On white

2.46
#D786ED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.52
#D786ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D786ED
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D786ED#FFFFFF#000000##000000
##D786ED1.002.468.528.52
#FFFFFF2.461.0021.0021.00
#0000008.5221.001.001.00
##0000008.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#76A0F1
Deuteranopia (green-blind)
#8CA8EA
Tritanopia (blue-blind)
#D893AE
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #d786ed;
/* rgb */ color: rgb(215, 134, 237);
/* oklch */ color: oklch(74.1% 0.166 318.8);
Tailwind
colors: {
  custom: {
    50: '#e5abf3',
    500: '#d786ed',
    950: '#000000',
  },
}
SCSS
$custom: #d786ed;
$custom-light: #e5abf3;
$custom-dark: #000000;
JSON
{
  "hex": "#d786ed",
  "rgb": {
    "r": 215,
    "g": 134,
    "b": 237
  },
  "hsl": {
    "h": 287.184,
    "s": 74.101,
    "l": 72.745
  },
  "oklch": {
    "l": 0.7413,
    "c": 0.16564,
    "h": 318.8
  },
  "luminance": 0.37612
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D786ED

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

Preview Lab → · Contrast checker → · Palette generator →

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