#D387FC#D387FC
#D387FC is a light, vivid violet. Relative luminance 0.382; OKLCH L 74.6% C 0.178 H 312.7°. Best body text is #000000 at 8.64:1 contrast (WCAG AA passes).
Color values
| HEX | #D387FC |
|---|---|
| RGB | rgb(211, 135, 252) |
| HSL | hsl(279, 95%, 76%) |
| HSV | hsv(279, 46%, 99%) |
| CMYK | cmyk(16.3%, 46.4%, 0%, 1.2%) |
| CIE-LAB | lab(68.17, 48.98, -47.09) |
| CIE-LCH | lch(68.17, 67.94, 316.13°) |
| OKLab | oklab(74.58% 0.121 -0.131) |
| OKLCH | oklch(74.58% 0.178 312.7) |
| XYZ | xyz(53.0956, 38.2063, 96.6541) |
| Luminance | 0.3821 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Liliac
#C48EFD
ΔE00 3.45
Light Purple
#BF77F6
ΔE00 5.14
Baby Purple
#CA9BF7
ΔE00 5.45
Violet (CSS)
#EE82EE
ΔE00 6.26
Easter Purple
#C071FE
ΔE00 6.29
Pastel Purple
#CAA0FF
ΔE00 6.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D387FC #B0FC87
analogous
#9887FC #D387FC #FC87EB
triadic
#D387FC #FCD387 #87FCD3
tetradic
#D387FC #FC9887 #B0FC87 #87EBFC
square
#D387FC #FC9887 #B0FC87 #87EBFC
split-complementary
#D387FC #EBFC87 #87FC98
monochromatic
#A710F9 #BD4BFB #D387FC #E9C3FD #F4E1FE
Accessibility & contrast
On white
2.43
#D387FC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.64
#D387FC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D387FC
8.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D387FC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D387FC | 1.00 | 2.43 | 8.64 | 8.64 |
| #FFFFFF | 2.43 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.64 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.64 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6EA2FF
Deuteranopia (green-blind)
#83A8F9
Tritanopia (blue-blind)
#CF99B6
Achromatopsia (no color)
#A6A6A6
Design tokens & code
CSS
--color: #d387fc; /* rgb */ color: rgb(211, 135, 252); /* oklch */ color: oklch(74.6% 0.178 312.7);
Tailwind
colors: {
custom: {
50: '#e2acfe',
500: '#d387fc',
950: '#000000',
},
}SCSS
$custom: #d387fc; $custom-light: #e2acfe; $custom-dark: #000000;
JSON
{
"hex": "#d387fc",
"rgb": {
"r": 211,
"g": 135,
"b": 252
},
"hsl": {
"h": 278.974,
"s": 95.122,
"l": 75.882
},
"oklch": {
"l": 0.74579,
"c": 0.1783,
"h": 312.7
},
"luminance": 0.38205
}Semantic roles & 50–950 ramp
primary
#D387FC
secondary
#E0F6D5
accent
#E60050
background
#FEFAFF
surface
#FCF4FF
border
#D5CED7
text
#161018
muted
#847F86