#B581E8#B581E8
#B581E8 is a light, vivid violet. Relative luminance 0.314; OKLCH L 69.5% C 0.154 H 306.1°. Best body text is #000000 at 7.27:1 contrast (WCAG AA passes).
Color values
| HEX | #B581E8 |
|---|---|
| RGB | rgb(181, 129, 232) |
| HSL | hsl(270, 69%, 71%) |
| HSV | hsv(270, 44%, 91%) |
| CMYK | cmyk(22%, 44.4%, 0%, 9%) |
| CIE-LAB | lab(62.80, 39.56, -44.75) |
| CIE-LCH | lch(62.80, 59.73, 311.48°) |
| OKLab | oklab(69.55% 0.0909 -0.1248) |
| OKLCH | oklch(69.55% 0.154 306.1) |
| XYZ | xyz(41.4688, 31.3508, 80.1950) |
| Luminance | 0.3135 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 3.59
Liliac
#C48EFD
ΔE00 4.49
Light Urple
#B36FF6
ΔE00 5.19
Easter Purple
#C071FE
ΔE00 5.20
Pale Purple
#B790D4
ΔE00 6.61
Wisteria
#A87DC2
ΔE00 6.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B581E8 #B4E881
analogous
#8181E8 #B581E8 #E881E8
triadic
#B581E8 #E8B581 #81E8B5
tetradic
#B581E8 #E88181 #B4E881 #81E8E8
square
#B581E8 #E88181 #B4E881 #81E8E8
split-complementary
#B581E8 #E8E881 #81E881
monochromatic
#7825CA #974DDF #B581E8 #D3B5F1 #F0E5FA
Accessibility & contrast
On white
2.89
#B581E8 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.27
#B581E8 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B581E8
7.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B581E8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B581E8 | 1.00 | 2.89 | 7.27 | 7.27 |
| #FFFFFF | 2.89 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.27 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.27 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6796EC
Deuteranopia (green-blind)
#7498E5
Tritanopia (blue-blind)
#AD92A9
Achromatopsia (no color)
#989898
Design tokens & code
CSS
--color: #b581e8; /* rgb */ color: rgb(181, 129, 232); /* oklch */ color: oklch(69.5% 0.154 306.1);
Tailwind
colors: {
custom: {
50: '#cda6f0',
500: '#b581e8',
950: '#000000',
},
}SCSS
$custom: #b581e8; $custom-light: #cda6f0; $custom-dark: #000000;
JSON
{
"hex": "#b581e8",
"rgb": {
"r": 181,
"g": 129,
"b": 232
},
"hsl": {
"h": 270.291,
"s": 69.128,
"l": 70.784
},
"oklch": {
"l": 0.69546,
"c": 0.15445,
"h": 306.1
},
"luminance": 0.3135
}Semantic roles & 50–950 ramp
primary
#B581E8
secondary
#E2F0D5
accent
#D11472
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#140F16
muted
#827F84