#B162E4#B162E4
#B162E4 is a light, vivid violet. Relative luminance 0.237; OKLCH L 64.2% C 0.197 H 310.0°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).
Color values
| HEX | #B162E4 |
|---|---|
| RGB | rgb(177, 98, 228) |
| HSL | hsl(276, 71%, 64%) |
| HSV | hsv(276, 57%, 89%) |
| CMYK | cmyk(22.4%, 57%, 0%, 10.6%) |
| CIE-LAB | lab(55.77, 54.07, -53.69) |
| CIE-LCH | lch(55.77, 76.20, 315.20°) |
| OKLab | oklab(64.17% 0.1267 -0.1509) |
| OKLCH | oklch(64.17% 0.197 310) |
| XYZ | xyz(36.5001, 23.6846, 76.0325) |
| Luminance | 0.2368 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lighter Purple
#A55AF4
ΔE00 4.12
Light Urple
#B36FF6
ΔE00 4.12
Mediumorchid
#BA55D3
ΔE00 4.36
Bright Lilac
#C95EFB
ΔE00 4.58
Lightish Purple
#A552E6
ΔE00 4.67
Bright Lavender
#C760FF
ΔE00 4.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B162E4 #95E462
analogous
#7062E4 #B162E4 #E462D6
triadic
#B162E4 #E4B162 #62E4B1
tetradic
#B162E4 #E47062 #95E462 #62D6E4
square
#B162E4 #E47062 #95E462 #62D6E4
split-complementary
#B162E4 #D6E462 #62E470
monochromatic
#751EAE #972EDB #B162E4 #CB96ED #E5CAF6
Accessibility & contrast
On white
3.66
#B162E4 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.74
#B162E4 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B162E4
5.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B162E4 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B162E4 | 1.00 | 3.66 | 5.74 | 5.74 |
| #FFFFFF | 3.66 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.74 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.74 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3682E8
Deuteranopia (green-blind)
#5587E1
Tritanopia (blue-blind)
#AA7A9A
Achromatopsia (no color)
#868686
Design tokens & code
CSS
--color: #b162e4; /* rgb */ color: rgb(177, 98, 228); /* oklch */ color: oklch(64.2% 0.197 310.0);
Tailwind
colors: {
custom: {
50: '#cb92ed',
500: '#b162e4',
950: '#000000',
},
}SCSS
$custom: #b162e4; $custom-light: #cb92ed; $custom-dark: #000000;
JSON
{
"hex": "#b162e4",
"rgb": {
"r": 177,
"g": 98,
"b": 228
},
"hsl": {
"h": 276.462,
"s": 70.652,
"l": 63.922
},
"oklch": {
"l": 0.64169,
"c": 0.19706,
"h": 310
},
"luminance": 0.23684
}Semantic roles & 50–950 ramp
primary
#B162E4
secondary
#CCE8BA
accent
#D3135E
background
#FCF9FE
surface
#F9F1FD
border
#D2CBD5
text
#140D16
muted
#827E84