#D381EF#D381EF
#D381EF is a light, vivid purple. Relative luminance 0.358; OKLCH L 73.0% C 0.174 H 317.0°. Best body text is #000000 at 8.16:1 contrast (WCAG AA passes).
Color values
| HEX | #D381EF |
|---|---|
| RGB | rgb(211, 129, 239) |
| HSL | hsl(285, 77%, 72%) |
| HSV | hsv(285, 46%, 94%) |
| CMYK | cmyk(11.7%, 46%, 0%, 6.3%) |
| CIE-LAB | lab(66.35, 49.44, -42.81) |
| CIE-LCH | lch(66.35, 65.40, 319.11°) |
| OKLab | oklab(73.03% 0.1273 -0.1186) |
| OKLCH | oklch(73.03% 0.174 317) |
| XYZ | xyz(50.2920, 35.7829, 85.9022) |
| Luminance | 0.3578 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Violet (CSS)
#EE82EE
ΔE00 5.06
Light Purple
#BF77F6
ΔE00 5.13
Liliac
#C48EFD
ΔE00 5.27
Orchid
#DA70D6
ΔE00 5.73
Lavender Pink
#DD85D7
ΔE00 5.97
Purply Pink
#F075E6
ΔE00 6.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#D381EF #9DEF81
analogous
#9C81EF #D381EF #EF81D4
triadic
#D381EF #EFD381 #81EFD3
tetradic
#D381EF #EF9C81 #9DEF81 #81D4EF
square
#D381EF #EF9C81 #9DEF81 #81D4EF
split-complementary
#D381EF #D4EF81 #81EF9C
monochromatic
#A91CDA #C04BE8 #D381EF #E6B7F6 #F6E4FC
Accessibility & contrast
On white
2.57
#D381EF on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.16
#D381EF on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #D381EF
8.16:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##D381EF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##D381EF | 1.00 | 2.57 | 8.16 | 8.16 |
| #FFFFFF | 2.57 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.16 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.16 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6D9CF3
Deuteranopia (green-blind)
#84A4EC
Tritanopia (blue-blind)
#D290AD
Achromatopsia (no color)
#A1A1A1
Design tokens & code
CSS
--color: #d381ef; /* rgb */ color: rgb(211, 129, 239); /* oklch */ color: oklch(73.0% 0.174 317.0);
Tailwind
colors: {
custom: {
50: '#e2a8f4',
500: '#d381ef',
950: '#000000',
},
}SCSS
$custom: #d381ef; $custom-light: #e2a8f4; $custom-dark: #000000;
JSON
{
"hex": "#d381ef",
"rgb": {
"r": 211,
"g": 129,
"b": 239
},
"hsl": {
"h": 284.727,
"s": 77.465,
"l": 72.157
},
"oklch": {
"l": 0.73029,
"c": 0.174,
"h": 317
},
"luminance": 0.35781
}Semantic roles & 50–950 ramp
primary
#D381EF
secondary
#DFF3D8
accent
#DA0C40
background
#FEFAFE
surface
#FCF4FD
border
#D5CED5
text
#161017
muted
#847F85