#B581F6#B581F6
#B581F6 is a light, vivid violet. Relative luminance 0.322; OKLCH L 70.3% C 0.171 H 302.8°. Best body text is #000000 at 7.44:1 contrast (WCAG AA passes).
Color values
| HEX | #B581F6 |
|---|---|
| RGB | rgb(181, 129, 246) |
| HSL | hsl(267, 87%, 74%) |
| HSV | hsv(267, 48%, 96%) |
| CMYK | cmyk(26.4%, 47.6%, 0%, 3.5%) |
| CIE-LAB | lab(63.49, 42.80, -51.40) |
| CIE-LCH | lch(63.49, 66.89, 309.78°) |
| OKLab | oklab(70.28% 0.0928 -0.1442) |
| OKLCH | oklch(70.28% 0.171 302.8) |
| XYZ | xyz(43.5372, 32.1781, 91.0883) |
| Luminance | 0.3218 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 3.10
Liliac
#C48EFD
ΔE00 4.00
Easter Purple
#C071FE
ΔE00 4.24
Light Urple
#B36FF6
ΔE00 4.40
Bright Lavender
#C760FF
ΔE00 7.50
Baby Purple
#CA9BF7
ΔE00 7.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B581F6 #C2F681
analogous
#8187F6 #B581F6 #F081F6
triadic
#B581F6 #F6B581 #81F6B5
tetradic
#B581F6 #F68187 #C2F681 #81F6F0
square
#B581F6 #F68187 #C2F681 #81F6F0
split-complementary
#B581F6 #F6F081 #87F681
monochromatic
#7211EC #9348F2 #B581F6 #D7BAFA #EEE2FD
Accessibility & contrast
On white
2.82
#B581F6 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.44
#B581F6 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B581F6
7.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B581F6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B581F6 | 1.00 | 2.82 | 7.44 | 7.44 |
| #FFFFFF | 2.82 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.44 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.44 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5E99FA
Deuteranopia (green-blind)
#6C99F3
Tritanopia (blue-blind)
#A996B0
Achromatopsia (no color)
#9A9A9A
Design tokens & code
CSS
--color: #b581f6; /* rgb */ color: rgb(181, 129, 246); /* oklch */ color: oklch(70.3% 0.171 302.8);
Tailwind
colors: {
custom: {
50: '#cea7fa',
500: '#b581f6',
950: '#000000',
},
}SCSS
$custom: #b581f6; $custom-light: #cea7fa; $custom-dark: #000000;
JSON
{
"hex": "#b581f6",
"rgb": {
"r": 181,
"g": 129,
"b": 246
},
"hsl": {
"h": 266.667,
"s": 86.667,
"l": 73.529
},
"oklch": {
"l": 0.70284,
"c": 0.17145,
"h": 302.8
},
"luminance": 0.32178
}Semantic roles & 50–950 ramp
primary
#B581F6
secondary
#E7F5D6
accent
#E3027F
background
#FCFAFF
surface
#F9F4FF
border
#D2CED7
text
#140F17
muted
#827F85