#B151E4#B151E4
#B151E4 is a mid, highly saturated violet. Relative luminance 0.208; OKLCH L 62.0% C 0.221 H 311.7°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).
Color values
| HEX | #B151E4 |
|---|---|
| RGB | rgb(177, 81, 228) |
| HSL | hsl(279, 73%, 61%) |
| HSV | hsv(279, 64%, 89%) |
| CMYK | cmyk(22.4%, 64.5%, 0%, 10.6%) |
| CIE-LAB | lab(52.77, 62.23, -58.50) |
| CIE-LCH | lch(52.77, 85.41, 316.77°) |
| OKLab | oklab(61.99% 0.147 -0.1649) |
| OKLCH | oklch(61.99% 0.221 311.7) |
| XYZ | xyz(35.0749, 20.8343, 75.5575) |
| Luminance | 0.2083 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 2.30
Mediumorchid
#BA55D3
ΔE00 3.75
Lighter Purple
#A55AF4
ΔE00 3.83
Bright Lilac
#C95EFB
ΔE00 6.21
Hot Purple
#CB00F5
ΔE00 6.30
Neon Purple
#BC13FE
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B151E4 #84E451
analogous
#6851E4 #B151E4 #E451CD
triadic
#B151E4 #E4B151 #51E4B1
tetradic
#B151E4 #E46851 #84E451 #51CDE4
square
#B151E4 #E46851 #84E451 #51CDE4
split-complementary
#B151E4 #CDE451 #51E468
monochromatic
#7219A2 #9821D7 #B151E4 #C986EC #E0BBF4
Accessibility & contrast
On white
4.06
#B151E4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.17
#B151E4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B151E4
5.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B151E4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B151E4 | 1.00 | 4.06 | 5.17 | 5.17 |
| #FFFFFF | 4.06 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.17 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.17 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0079E8
Deuteranopia (green-blind)
#4380E1
Tritanopia (blue-blind)
#AB6E94
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #b151e4; /* rgb */ color: rgb(177, 81, 228); /* oklch */ color: oklch(62.0% 0.221 311.7);
Tailwind
colors: {
custom: {
50: '#cc88ed',
500: '#b151e4',
950: '#000000',
},
}SCSS
$custom: #b151e4; $custom-light: #cc88ed; $custom-dark: #000000;
JSON
{
"hex": "#b151e4",
"rgb": {
"r": 177,
"g": 81,
"b": 228
},
"hsl": {
"h": 279.184,
"s": 73.134,
"l": 60.588
},
"oklch": {
"l": 0.61988,
"c": 0.22088,
"h": 311.7
},
"luminance": 0.20833
}Semantic roles & 50–950 ramp
primary
#B151E4
secondary
#C0E4AC
accent
#D51055
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84