#D786F4#D786F4
#D786F4 is a light, vivid purple. Relative luminance 0.380; OKLCH L 74.5% C 0.173 H 316.7°. Best body text is #000000 at 8.61:1 contrast (WCAG AA passes).
Color values
| HEX | #D786F4 |
|---|---|
| RGB | rgb(215, 134, 244) |
| HSL | hsl(284, 83%, 74%) |
| HSV | hsv(284, 45%, 96%) |
| CMYK | cmyk(11.9%, 45.1%, 0%, 4.3%) |
| CIE-LAB | lab(68.04, 48.97, -42.88) |
| CIE-LCH | lch(68.04, 65.09, 318.79°) |
| OKLab | oklab(74.46% 0.1258 -0.1187) |
| OKLCH | oklch(74.46% 0.173 316.7) |
| XYZ | xyz(52.8762, 38.0305, 90.1257) |
| Luminance | 0.3803 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 4.68
Liliac
#C48EFD
ΔE00 4.88
Baby Purple
#CA9BF7
ΔE00 5.94
Light Purple
#BF77F6
ΔE00 6.00
Lavender Pink
#DD85D7
ΔE00 6.05
Purply Pink
#F075E6
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D786F4 #A3F486
analogous
#A086F4 #D786F4 #F486DA
triadic
#D786F4 #F4D786 #86F4D7
tetradic
#D786F4 #F4A086 #A3F486 #86DAF4
square
#D786F4 #F4A086 #A3F486 #86DAF4
split-complementary
#D786F4 #DAF486 #86F4A0
monochromatic
#B216EA #C44EEF #D786F4 #EABEF9 #F6E3FC
Accessibility & contrast
On white
2.44
#D786F4 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.61
#D786F4 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D786F4
8.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D786F4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D786F4 | 1.00 | 2.44 | 8.61 | 8.61 |
| #FFFFFF | 2.44 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.61 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.61 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#72A1F8
Deuteranopia (green-blind)
#89A8F1
Tritanopia (blue-blind)
#D695B2
Achromatopsia (no color)
#A6A6A6
Design tokens & code
CSS
--color: #d786f4; /* rgb */ color: rgb(215, 134, 244); /* oklch */ color: oklch(74.5% 0.173 316.7);
Tailwind
colors: {
custom: {
50: '#e5abf8',
500: '#d786f4',
950: '#000000',
},
}SCSS
$custom: #d786f4; $custom-light: #e5abf8; $custom-dark: #000000;
JSON
{
"hex": "#d786f4",
"rgb": {
"r": 215,
"g": 134,
"b": 244
},
"hsl": {
"h": 284.182,
"s": 83.333,
"l": 74.118
},
"oklch": {
"l": 0.74461,
"c": 0.173,
"h": 316.7
},
"luminance": 0.38029
}Semantic roles & 50–950 ramp
primary
#D786F4
secondary
#DEF4D7
accent
#E0063F
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#161017
muted
#847F85