#D786F5#D786F5

#D786F5 is a light, vivid purple. Relative luminance 0.381; OKLCH L 74.5% C 0.174 H 316.4°. Best body text is #000000 at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#D786F5
RGBrgb(215, 134, 245)
HSLhsl(284, 85%, 74%)
HSVhsv(284, 45%, 96%)
CMYKcmyk(12.2%, 45.3%, 0%, 3.9%)
CIE-LABlab(68.09, 49.17, -43.36)
CIE-LCHlch(68.09, 65.56, 318.59°)
OKLaboklab(74.51% 0.126 -0.1201)
OKLCHoklch(74.51% 0.174 316.4)
XYZxyz(53.0284, 38.0914, 90.9275)
Luminance0.3809 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#D786F5 #A4F586
analogous
#A086F5 #D786F5 #F586DC
triadic
#D786F5 #F5D786 #86F5D7
tetradic
#D786F5 #F5A086 #A4F586 #86DCF5
square
#D786F5 #F5A086 #A4F586 #86DCF5
split-complementary
#D786F5 #DCF586 #86F5A0
monochromatic
#B215EC #C44DF0 #D786F5 #EABFFA #F6E3FD

Accessibility & contrast

On white

2.44
#D786F5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.62
#D786F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #D786F5
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##D786F5#FFFFFF#000000##000000
##D786F51.002.448.628.62
#FFFFFF2.441.0021.0021.00
#0000008.6221.001.001.00
##0000008.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#72A1F9
Deuteranopia (green-blind)
#88A8F2
Tritanopia (blue-blind)
#D696B2
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #d786f5;
/* rgb */ color: rgb(215, 134, 245);
/* oklch */ color: oklch(74.5% 0.174 316.4);
Tailwind
colors: {
  custom: {
    50: '#e5abf9',
    500: '#d786f5',
    950: '#000000',
  },
}
SCSS
$custom: #d786f5;
$custom-light: #e5abf9;
$custom-dark: #000000;
JSON
{
  "hex": "#d786f5",
  "rgb": {
    "r": 215,
    "g": 134,
    "b": 245
  },
  "hsl": {
    "h": 283.784,
    "s": 84.733,
    "l": 74.314
  },
  "oklch": {
    "l": 0.74509,
    "c": 0.17406,
    "h": 316.4
  },
  "luminance": 0.3809
}

Semantic roles & 50–950 ramp

primary
#D786F5
secondary
#DFF5D6
accent
#E10440
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#161017
muted
#847F85

Preview Lab

Preview with #D786F5

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

Preview Lab → · Contrast checker → · Palette generator →

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