#B151E2#B151E2
#B151E2 is a mid, highly saturated violet. Relative luminance 0.207; OKLCH L 61.9% C 0.219 H 312.2°. Best body text is #000000 at 5.14:1 contrast (WCAG AA passes).
Color values
| HEX | #B151E2 |
|---|---|
| RGB | rgb(177, 81, 226) |
| HSL | hsl(280, 71%, 60%) |
| HSV | hsv(280, 64%, 89%) |
| CMYK | cmyk(21.7%, 64.2%, 0%, 11.4%) |
| CIE-LAB | lab(52.65, 61.81, -57.57) |
| CIE-LCH | lch(52.65, 84.46, 317.03°) |
| OKLab | oklab(61.86% 0.147 -0.1622) |
| OKLCH | oklch(61.86% 0.219 312.2) |
| XYZ | xyz(34.7989, 20.7239, 74.1037) |
| Luminance | 0.2072 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 2.42
Mediumorchid
#BA55D3
ΔE00 3.52
Lighter Purple
#A55AF4
ΔE00 4.08
Hot Purple
#CB00F5
ΔE00 6.33
Bright Lilac
#C95EFB
ΔE00 6.34
Amethyst
#9B5FC0
ΔE00 6.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B151E2 #82E251
analogous
#6851E2 #B151E2 #E251CB
triadic
#B151E2 #E2B151 #51E2B1
tetradic
#B151E2 #E26851 #82E251 #51CBE2
square
#B151E2 #E26851 #82E251 #51CBE2
split-complementary
#B151E2 #CBE251 #51E268
monochromatic
#721A9E #9723D3 #B151E2 #C985EB #E0BAF3
Accessibility & contrast
On white
4.08
#B151E2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.14
#B151E2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B151E2
5.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B151E2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B151E2 | 1.00 | 4.08 | 5.14 | 5.14 |
| #FFFFFF | 4.08 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.14 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.14 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0079E6
Deuteranopia (green-blind)
#4580DF
Tritanopia (blue-blind)
#AB6D93
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #b151e2; /* rgb */ color: rgb(177, 81, 226); /* oklch */ color: oklch(61.9% 0.219 312.2);
Tailwind
colors: {
custom: {
50: '#cc88ec',
500: '#b151e2',
950: '#000000',
},
}SCSS
$custom: #b151e2; $custom-light: #cc88ec; $custom-dark: #000000;
JSON
{
"hex": "#b151e2",
"rgb": {
"r": 177,
"g": 81,
"b": 226
},
"hsl": {
"h": 279.724,
"s": 71.429,
"l": 60.196
},
"oklch": {
"l": 0.61862,
"c": 0.21891,
"h": 312.2
},
"luminance": 0.20723
}Semantic roles & 50–950 ramp
primary
#B151E2
secondary
#BEE3AC
accent
#D31253
background
#FDF8FE
surface
#FAF0FD
border
#D3CBD5
text
#140C16
muted
#837D84