#D786E7#D786E7

#D786E7 is a light, vivid purple. Relative luminance 0.373; OKLCH L 73.9% C 0.159 H 320.8°. Best body text is #000000 at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#D786E7
RGBrgb(215, 134, 231)
HSLhsl(290, 67%, 72%)
HSVhsv(290, 42%, 91%)
CMYKcmyk(6.9%, 42%, 0%, 9.4%)
CIE-LABlab(67.48, 46.41, -36.61)
CIE-LCHlch(67.48, 59.11, 321.73°)
OKLaboklab(73.85% 0.1236 -0.1007)
OKLCHoklch(73.85% 0.159 320.8)
XYZxyz(50.9715, 37.2686, 80.0944)
Luminance0.3727 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D786E7 #96E786
analogous
#A786E7 #D786E7 #E786C7
triadic
#D786E7 #E7D786 #86E7D7
tetradic
#D786E7 #E7A786 #96E786 #86C7E7
square
#D786E7 #E7A786 #96E786 #86C7E7
split-complementary
#D786E7 #C7E786 #86E7A7
monochromatic
#B028CA #C653DD #D786E7 #E8B9F1 #F7E5FA

Accessibility & contrast

On white

2.48
#D786E7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.45
#D786E7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D786E7
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D786E7#FFFFFF#000000##000000
##D786E71.002.488.458.45
#FFFFFF2.481.0021.0021.00
#0000008.4521.001.001.00
##0000008.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#799FEA
Deuteranopia (green-blind)
#8FA7E4
Tritanopia (blue-blind)
#D992AC
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #d786e7;
/* rgb */ color: rgb(215, 134, 231);
/* oklch */ color: oklch(73.9% 0.159 320.8);
Tailwind
colors: {
  custom: {
    50: '#e5abef',
    500: '#d786e7',
    950: '#000000',
  },
}
SCSS
$custom: #d786e7;
$custom-light: #e5abef;
$custom-dark: #000000;
JSON
{
  "hex": "#d786e7",
  "rgb": {
    "r": 215,
    "g": 134,
    "b": 231
  },
  "hsl": {
    "h": 290.103,
    "s": 66.897,
    "l": 71.569
  },
  "oklch": {
    "l": 0.73854,
    "c": 0.15943,
    "h": 320.8
  },
  "luminance": 0.37267
}

Semantic roles & 50–950 ramp

primary
#D786E7
secondary
#DCF1D8
accent
#CF1735
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#161016
muted
#847F84

Preview Lab

Preview with #D786E7

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

Preview Lab → · Contrast checker → · Palette generator →

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