#D786F0#D786F0

#D786F0 is a light, vivid purple. Relative luminance 0.378; OKLCH L 74.3% C 0.169 H 317.9°. Best body text is #000000 at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#D786F0
RGBrgb(215, 134, 240)
HSLhsl(286, 78%, 73%)
HSVhsv(286, 44%, 94%)
CMYKcmyk(10.4%, 44.2%, 0%, 5.9%)
CIE-LABlab(67.87, 48.17, -40.96)
CIE-LCHlch(67.87, 63.23, 319.62°)
OKLaboklab(74.27% 0.1252 -0.1132)
OKLCHoklch(74.27% 0.169 317.9)
XYZxyz(52.2754, 37.7902, 86.9617)
Luminance0.3779 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D786F0 #9FF086
analogous
#A286F0 #D786F0 #F086D4
triadic
#D786F0 #F0D786 #86F0D7
tetradic
#D786F0 #F0A286 #9FF086 #86D4F0
square
#D786F0 #F0A286 #9FF086 #86D4F0
split-complementary
#D786F0 #D4F086 #86F0A2
monochromatic
#B21CE0 #C550E9 #D786F0 #E9BCF7 #F6E4FC

Accessibility & contrast

On white

2.45
#D786F0 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.56
#D786F0 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D786F0
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D786F0#FFFFFF#000000##000000
##D786F01.002.458.568.56
#FFFFFF2.451.0021.0021.00
#0000008.5621.001.001.00
##0000008.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#74A0F4
Deuteranopia (green-blind)
#8AA8ED
Tritanopia (blue-blind)
#D794B0
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #d786f0;
/* rgb */ color: rgb(215, 134, 240);
/* oklch */ color: oklch(74.3% 0.169 317.9);
Tailwind
colors: {
  custom: {
    50: '#e5abf5',
    500: '#d786f0',
    950: '#000000',
  },
}
SCSS
$custom: #d786f0;
$custom-light: #e5abf5;
$custom-dark: #000000;
JSON
{
  "hex": "#d786f0",
  "rgb": {
    "r": 215,
    "g": 134,
    "b": 240
  },
  "hsl": {
    "h": 285.849,
    "s": 77.941,
    "l": 73.333
  },
  "oklch": {
    "l": 0.74271,
    "c": 0.16878,
    "h": 317.9
  },
  "luminance": 0.37789
}

Semantic roles & 50–950 ramp

primary
#D786F0
secondary
#DEF3D8
accent
#DA0B3C
background
#FEFAFF
surface
#FCF4FE
border
#D5CED6
text
#161017
muted
#847F85

Preview Lab

Preview with #D786F0

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

Preview Lab → · Contrast checker → · Palette generator →

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