#D786FE#D786FE

#D786FE is a light, vivid purple. Relative luminance 0.387; OKLCH L 75.0% C 0.184 H 313.9°. Best body text is #000000 at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#D786FE
RGBrgb(215, 134, 254)
HSLhsl(281, 98%, 76%)
HSVhsv(281, 47%, 100%)
CMYKcmyk(15.4%, 47.2%, 0%, 0.4%)
CIE-LABlab(68.50, 51.00, -47.63)
CIE-LCHlch(68.50, 69.79, 316.96°)
OKLaboklab(74.95% 0.1273 -0.1325)
OKLCHoklch(74.95% 0.184 313.9)
XYZxyz(54.4359, 38.6544, 98.3402)
Luminance0.3865 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D786FE #ADFE86
analogous
#9B86FE #D786FE #FE86E9
triadic
#D786FE #FED786 #86FED7
tetradic
#D786FE #FE9B86 #ADFE86 #86E9FE
square
#D786FE #FE9B86 #ADFE86 #86E9FE
split-complementary
#D786FE #E9FE86 #86FE9B
monochromatic
#AF0DFD #C349FD #D786FE #EBC3FF #F5E1FF

Accessibility & contrast

On white

2.41
#D786FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.73
#D786FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D786FE
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D786FE#FFFFFF#000000##000000
##D786FE1.002.418.738.73
#FFFFFF2.411.0021.0021.00
#0000008.7321.001.001.00
##0000008.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6CA2FF
Deuteranopia (green-blind)
#83A9FB
Tritanopia (blue-blind)
#D498B6
Achromatopsia (no color)
#A7A7A7

Design tokens & code

CSS
--color: #d786fe;
/* rgb */ color: rgb(215, 134, 254);
/* oklch */ color: oklch(75.0% 0.184 313.9);
Tailwind
colors: {
  custom: {
    50: '#e5abff',
    500: '#d786fe',
    950: '#000000',
  },
}
SCSS
$custom: #d786fe;
$custom-light: #e5abff;
$custom-dark: #000000;
JSON
{
  "hex": "#d786fe",
  "rgb": {
    "r": 215,
    "g": 134,
    "b": 254
  },
  "hsl": {
    "h": 280.5,
    "s": 98.361,
    "l": 76.078
  },
  "oklch": {
    "l": 0.74951,
    "c": 0.18369,
    "h": 313.9
  },
  "luminance": 0.38653
}

Semantic roles & 50–950 ramp

primary
#D786FE
secondary
#DFF7D4
accent
#E6004B
background
#FEFAFF
surface
#FDF4FF
border
#D5CED7
text
#161018
muted
#847F86

Preview Lab

Preview with #D786FE

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

Preview Lab → · Contrast checker → · Palette generator →

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