#D786EF#D786EF

#D786EF is a light, vivid purple. Relative luminance 0.377; OKLCH L 74.2% C 0.168 H 318.2°. Best body text is #000000 at 8.55:1 contrast (WCAG AA passes).

Color values

HEX#D786EF
RGBrgb(215, 134, 239)
HSLhsl(286, 77%, 73%)
HSVhsv(286, 44%, 94%)
CMYKcmyk(10%, 43.9%, 0%, 6.3%)
CIE-LABlab(67.82, 47.97, -40.48)
CIE-LCHlch(67.82, 62.77, 319.84°)
OKLaboklab(74.22% 0.125 -0.1118)
OKLCHoklch(74.22% 0.168 318.2)
XYZxyz(52.1273, 37.7309, 86.1815)
Luminance0.3773 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D786EF #9EEF86
analogous
#A286EF #D786EF #EF86D2
triadic
#D786EF #EFD786 #86EFD7
tetradic
#D786EF #EFA286 #9EEF86 #86D2EF
square
#D786EF #EFA286 #9EEF86 #86D2EF
split-complementary
#D786EF #D2EF86 #86EFA2
monochromatic
#B11DDD #C550E8 #D786EF #E9BCF6 #F6E4FB

Accessibility & contrast

On white

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

On black

8.55
#D786EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D786EF
8.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D786EF#FFFFFF#000000##000000
##D786EF1.002.468.558.55
#FFFFFF2.461.0021.0021.00
#0000008.5521.001.001.00
##0000008.5521.001.001.00

Color blindness preview

Protanopia (red-blind)
#75A0F3
Deuteranopia (green-blind)
#8BA8EC
Tritanopia (blue-blind)
#D794AF
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #d786ef;
/* rgb */ color: rgb(215, 134, 239);
/* oklch */ color: oklch(74.2% 0.168 318.2);
Tailwind
colors: {
  custom: {
    50: '#e5abf4',
    500: '#d786ef',
    950: '#000000',
  },
}
SCSS
$custom: #d786ef;
$custom-light: #e5abf4;
$custom-dark: #000000;
JSON
{
  "hex": "#d786ef",
  "rgb": {
    "r": 215,
    "g": 134,
    "b": 239
  },
  "hsl": {
    "h": 286.286,
    "s": 76.642,
    "l": 73.137
  },
  "oklch": {
    "l": 0.74224,
    "c": 0.16773,
    "h": 318.2
  },
  "luminance": 0.37729
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #D786EF

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

Preview Lab → · Contrast checker → · Palette generator →

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