#B381E8#B381E8
#B381E8 is a light, vivid violet. Relative luminance 0.311; OKLCH L 69.3% C 0.154 H 305.1°. Best body text is #000000 at 7.22:1 contrast (WCAG AA passes).
Color values
| HEX | #B381E8 |
|---|---|
| RGB | rgb(179, 129, 232) |
| HSL | hsl(269, 69%, 71%) |
| HSV | hsv(269, 44%, 91%) |
| CMYK | cmyk(22.8%, 44.4%, 0%, 9%) |
| CIE-LAB | lab(62.60, 39.00, -45.08) |
| CIE-LCH | lch(62.60, 59.61, 310.87°) |
| OKLab | oklab(69.35% 0.0885 -0.1259) |
| OKLCH | oklch(69.35% 0.154 305.1) |
| XYZ | xyz(41.0031, 31.1106, 80.1731) |
| Luminance | 0.3111 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 3.75
Liliac
#C48EFD
ΔE00 4.64
Light Urple
#B36FF6
ΔE00 5.12
Easter Purple
#C071FE
ΔE00 5.29
Pale Purple
#B790D4
ΔE00 6.73
Wisteria
#A87DC2
ΔE00 6.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B381E8 #B6E881
analogous
#8182E8 #B381E8 #E681E8
triadic
#B381E8 #E8B381 #81E8B3
tetradic
#B381E8 #E88182 #B6E881 #81E8E6
square
#B381E8 #E88182 #B6E881 #81E8E6
split-complementary
#B381E8 #E8E681 #82E881
monochromatic
#7525CA #944DDF #B381E8 #D2B5F1 #EFE5FA
Accessibility & contrast
On white
2.91
#B381E8 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.22
#B381E8 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B381E8
7.22:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B381E8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B381E8 | 1.00 | 2.91 | 7.22 | 7.22 |
| #FFFFFF | 2.91 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.22 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.22 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6796EC
Deuteranopia (green-blind)
#7398E5
Tritanopia (blue-blind)
#AB92A9
Achromatopsia (no color)
#979797
Design tokens & code
CSS
--color: #b381e8; /* rgb */ color: rgb(179, 129, 232); /* oklch */ color: oklch(69.3% 0.154 305.1);
Tailwind
colors: {
custom: {
50: '#cca6f0',
500: '#b381e8',
950: '#000000',
},
}SCSS
$custom: #b381e8; $custom-light: #cca6f0; $custom-dark: #000000;
JSON
{
"hex": "#b381e8",
"rgb": {
"r": 179,
"g": 129,
"b": 232
},
"hsl": {
"h": 269.126,
"s": 69.128,
"l": 70.784
},
"oklch": {
"l": 0.69348,
"c": 0.15388,
"h": 305.1
},
"luminance": 0.3111
}Semantic roles & 50–950 ramp
primary
#B381E8
secondary
#E3F0D5
accent
#D11475
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#140F16
muted
#827F84