#B381EB#B381EB
#B381EB is a light, vivid violet. Relative luminance 0.313; OKLCH L 69.5% C 0.158 H 304.4°. Best body text is #000000 at 7.26:1 contrast (WCAG AA passes).
Color values
| HEX | #B381EB |
|---|---|
| RGB | rgb(179, 129, 235) |
| HSL | hsl(268, 73%, 71%) |
| HSV | hsv(268, 45%, 92%) |
| CMYK | cmyk(23.8%, 45.1%, 0%, 7.8%) |
| CIE-LAB | lab(62.75, 39.70, -46.52) |
| CIE-LCH | lch(62.75, 61.15, 310.48°) |
| OKLab | oklab(69.5% 0.089 -0.13) |
| OKLCH | oklch(69.5% 0.158 304.4) |
| XYZ | xyz(41.4329, 31.2825, 82.4365) |
| Luminance | 0.3128 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 3.54
Liliac
#C48EFD
ΔE00 4.46
Light Urple
#B36FF6
ΔE00 4.87
Easter Purple
#C071FE
ΔE00 5.01
Pale Purple
#B790D4
ΔE00 7.13
Wisteria
#A87DC2
ΔE00 7.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B381EB #B9EB81
analogous
#8184EB #B381EB #E881EB
triadic
#B381EB #EBB381 #81EBB3
tetradic
#B381EB #EB8184 #B9EB81 #81EBE8
square
#B381EB #EB8184 #B9EB81 #81EBE8
split-complementary
#B381EB #EBE881 #84EB81
monochromatic
#7421D1 #934CE3 #B381EB #D3B6F3 #EFE5FB
Accessibility & contrast
On white
2.89
#B381EB on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.26
#B381EB on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B381EB
7.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B381EB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B381EB | 1.00 | 2.89 | 7.26 | 7.26 |
| #FFFFFF | 2.89 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.26 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.26 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6596EF
Deuteranopia (green-blind)
#7198E8
Tritanopia (blue-blind)
#AA93AB
Achromatopsia (no color)
#989898
Design tokens & code
CSS
--color: #b381eb; /* rgb */ color: rgb(179, 129, 235); /* oklch */ color: oklch(69.5% 0.158 304.4);
Tailwind
colors: {
custom: {
50: '#cca6f2',
500: '#b381eb',
950: '#000000',
},
}SCSS
$custom: #b381eb; $custom-light: #cca6f2; $custom-dark: #000000;
JSON
{
"hex": "#b381eb",
"rgb": {
"r": 179,
"g": 129,
"b": 235
},
"hsl": {
"h": 268.302,
"s": 72.603,
"l": 71.373
},
"oklch": {
"l": 0.69504,
"c": 0.15755,
"h": 304.4
},
"luminance": 0.31282
}Semantic roles & 50–950 ramp
primary
#B381EB
secondary
#E5F2D6
accent
#D51178
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#140F17
muted
#827F85