#D786F2#D786F2
#D786F2 is a light, vivid purple. Relative luminance 0.379; OKLCH L 74.4% C 0.171 H 317.3°. Best body text is #000000 at 8.58:1 contrast (WCAG AA passes).
Color values
| HEX | #D786F2 |
|---|---|
| RGB | rgb(215, 134, 242) |
| HSL | hsl(285, 81%, 74%) |
| HSV | hsv(285, 45%, 95%) |
| CMYK | cmyk(11.2%, 44.6%, 0%, 5.1%) |
| CIE-LAB | lab(67.95, 48.57, -41.92) |
| CIE-LCH | lch(67.95, 64.16, 319.20°) |
| OKLab | oklab(74.37% 0.1255 -0.1159) |
| OKLCH | oklch(74.37% 0.171 317.3) |
| XYZ | xyz(52.5742, 37.9097, 88.5350) |
| Luminance | 0.3791 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 4.49
Liliac
#C48EFD
ΔE00 5.09
Lavender Pink
#DD85D7
ΔE00 5.71
Baby Purple
#CA9BF7
ΔE00 6.01
Purply Pink
#F075E6
ΔE00 6.01
Light Purple
#BF77F6
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D786F2 #A1F286
analogous
#A186F2 #D786F2 #F286D7
triadic
#D786F2 #F2D786 #86F2D7
tetradic
#D786F2 #F2A186 #A1F286 #86D7F2
square
#D786F2 #F2A186 #A1F286 #86D7F2
split-complementary
#D786F2 #D7F286 #86F2A1
monochromatic
#B219E5 #C54FEC #D786F2 #E9BDF8 #F6E3FC
Accessibility & contrast
On white
2.45
#D786F2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.58
#D786F2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D786F2
8.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D786F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D786F2 | 1.00 | 2.45 | 8.58 | 8.58 |
| #FFFFFF | 2.45 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.58 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.58 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#73A0F6
Deuteranopia (green-blind)
#8AA8EF
Tritanopia (blue-blind)
#D795B1
Achromatopsia (no color)
#A6A6A6
Design tokens & code
CSS
--color: #d786f2; /* rgb */ color: rgb(215, 134, 242); /* oklch */ color: oklch(74.4% 0.171 317.3);
Tailwind
colors: {
custom: {
50: '#e5abf6',
500: '#d786f2',
950: '#000000',
},
}SCSS
$custom: #d786f2; $custom-light: #e5abf6; $custom-dark: #000000;
JSON
{
"hex": "#d786f2",
"rgb": {
"r": 215,
"g": 134,
"b": 242
},
"hsl": {
"h": 285,
"s": 80.597,
"l": 73.725
},
"oklch": {
"l": 0.74366,
"c": 0.17089,
"h": 317.3
},
"luminance": 0.37908
}Semantic roles & 50–950 ramp
primary
#D786F2
secondary
#DEF4D7
accent
#DD093E
background
#FEFAFF
surface
#FCF4FE
border
#D5CED6
text
#161017
muted
#847F85