#B152E2#B152E2
#B152E2 is a mid, highly saturated violet. Relative luminance 0.209; OKLCH L 62.0% C 0.218 H 312.1°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).
Color values
| HEX | #B152E2 |
|---|---|
| RGB | rgb(177, 82, 226) |
| HSL | hsl(280, 71%, 60%) |
| HSV | hsv(280, 64%, 89%) |
| CMYK | cmyk(21.7%, 63.7%, 0%, 11.4%) |
| CIE-LAB | lab(52.81, 61.35, -57.30) |
| CIE-LCH | lch(52.81, 83.95, 316.95°) |
| OKLab | oklab(61.98% 0.1459 -0.1614) |
| OKLCH | oklch(61.98% 0.218 312.1) |
| XYZ | xyz(34.8737, 20.8736, 74.1287) |
| Luminance | 0.2087 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lightish Purple
#A552E6
ΔE00 2.47
Mediumorchid
#BA55D3
ΔE00 3.46
Lighter Purple
#A55AF4
ΔE00 4.01
Bright Lilac
#C95EFB
ΔE00 6.21
Amethyst
#9B5FC0
ΔE00 6.31
Hot Purple
#CB00F5
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B152E2 #83E252
analogous
#6952E2 #B152E2 #E252CB
triadic
#B152E2 #E2B152 #52E2B1
tetradic
#B152E2 #E26952 #83E252 #52CBE2
square
#B152E2 #E26952 #83E252 #52CBE2
split-complementary
#B152E2 #CBE252 #52E269
monochromatic
#721B9F #9723D3 #B152E2 #C986EB #E0BBF4
Accessibility & contrast
On white
4.06
#B152E2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.17
#B152E2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B152E2
5.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B152E2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B152E2 | 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)
#0079E6
Deuteranopia (green-blind)
#4680DF
Tritanopia (blue-blind)
#AB6E93
Achromatopsia (no color)
#7E7E7E
Design tokens & code
CSS
--color: #b152e2; /* rgb */ color: rgb(177, 82, 226); /* oklch */ color: oklch(62.0% 0.218 312.1);
Tailwind
colors: {
custom: {
50: '#cc88ec',
500: '#b152e2',
950: '#000000',
},
}SCSS
$custom: #b152e2; $custom-light: #cc88ec; $custom-dark: #000000;
JSON
{
"hex": "#b152e2",
"rgb": {
"r": 177,
"g": 82,
"b": 226
},
"hsl": {
"h": 279.583,
"s": 71.287,
"l": 60.392
},
"oklch": {
"l": 0.61981,
"c": 0.21758,
"h": 312.1
},
"luminance": 0.20873
}Semantic roles & 50–950 ramp
primary
#B152E2
secondary
#BFE3AC
accent
#D31254
background
#FCF8FE
surface
#F9F0FD
border
#D2CBD5
text
#140C16
muted
#827D84