#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 |
|---|---|
| RGB | rgb(215, 134, 245) |
| HSL | hsl(284, 85%, 74%) |
| HSV | hsv(284, 45%, 96%) |
| CMYK | cmyk(12.2%, 45.3%, 0%, 3.9%) |
| CIE-LAB | lab(68.09, 49.17, -43.36) |
| CIE-LCH | lch(68.09, 65.56, 318.59°) |
| OKLab | oklab(74.51% 0.126 -0.1201) |
| OKLCH | oklch(74.51% 0.174 316.4) |
| XYZ | xyz(53.0284, 38.0914, 90.9275) |
| Luminance | 0.3809 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Liliac
#C48EFD
ΔE00 4.77
Violet (CSS)
#EE82EE
ΔE00 4.78
Baby Purple
#CA9BF7
ΔE00 5.92
Light Purple
#BF77F6
ΔE00 5.92
Lavender Pink
#DD85D7
ΔE00 6.22
Purply Pink
#F075E6
ΔE00 6.31
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 |
|---|---|---|---|---|
| ##D786F5 | 1.00 | 2.44 | 8.62 | 8.62 |
| #FFFFFF | 2.44 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.62 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.62 | 21.00 | 1.00 | 1.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