#D186F8#D186F8
#D186F8 is a light, vivid violet. Relative luminance 0.374; OKLCH L 74.0% C 0.175 H 313.1°. Best body text is #000000 at 8.48:1 contrast (WCAG AA passes).
Color values
| HEX | #D186F8 |
|---|---|
| RGB | rgb(209, 134, 248) |
| HSL | hsl(279, 89%, 75%) |
| HSV | hsv(279, 46%, 97%) |
| CMYK | cmyk(15.7%, 46%, 0%, 2.7%) |
| CIE-LAB | lab(67.56, 48.12, -45.87) |
| CIE-LCH | lch(67.56, 66.48, 316.37°) |
| OKLab | oklab(74.02% 0.1195 -0.1275) |
| OKLCH | oklch(74.02% 0.175 313.1) |
| XYZ | xyz(51.7600, 37.3840, 93.2779) |
| Luminance | 0.3738 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 3.54
Light Purple
#BF77F6
ΔE00 4.88
Baby Purple
#CA9BF7
ΔE00 5.51
Easter Purple
#C071FE
ΔE00 6.14
Violet (CSS)
#EE82EE
ΔE00 6.18
Pastel Purple
#CAA0FF
ΔE00 6.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D186F8 #ADF886
analogous
#9886F8 #D186F8 #F886E6
triadic
#D186F8 #F8D186 #86F8D1
tetradic
#D186F8 #F89886 #ADF886 #86E6F8
square
#D186F8 #F89886 #ADF886 #86E6F8
split-complementary
#D186F8 #E6F886 #86F898
monochromatic
#A512F1 #BB4CF5 #D186F8 #E7C0FB #F4E2FD
Accessibility & contrast
On white
2.48
#D186F8 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.48
#D186F8 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D186F8
8.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D186F8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D186F8 | 1.00 | 2.48 | 8.48 | 8.48 |
| #FFFFFF | 2.48 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.48 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.48 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6EA0FC
Deuteranopia (green-blind)
#83A6F5
Tritanopia (blue-blind)
#CE97B3
Achromatopsia (no color)
#A5A5A5
Design tokens & code
CSS
--color: #d186f8; /* rgb */ color: rgb(209, 134, 248); /* oklch */ color: oklch(74.0% 0.175 313.1);
Tailwind
colors: {
custom: {
50: '#e1abfb',
500: '#d186f8',
950: '#000000',
},
}SCSS
$custom: #d186f8; $custom-light: #e1abfb; $custom-dark: #000000;
JSON
{
"hex": "#d186f8",
"rgb": {
"r": 209,
"g": 134,
"b": 248
},
"hsl": {
"h": 279.474,
"s": 89.063,
"l": 74.902
},
"oklch": {
"l": 0.74017,
"c": 0.17471,
"h": 313.1
},
"luminance": 0.37383
}Semantic roles & 50–950 ramp
primary
#D186F8
secondary
#E0F5D6
accent
#E6004F
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#151017
muted
#847F85