#B162BB#B162BB
#B162BB is a mid, vivid purple. Relative luminance 0.217; OKLCH L 61.9% C 0.154 H 323.0°. Best body text is #000000 at 5.33:1 contrast (WCAG AA passes).
Color values
| HEX | #B162BB |
|---|---|
| RGB | rgb(177, 98, 187) |
| HSL | hsl(293, 40%, 56%) |
| HSV | hsv(293, 48%, 73%) |
| CMYK | cmyk(5.3%, 47.6%, 0%, 26.7%) |
| CIE-LAB | lab(53.68, 45.57, -33.68) |
| CIE-LCH | lch(53.68, 56.66, 323.53°) |
| OKLab | oklab(61.95% 0.123 -0.0928) |
| OKLCH | oklch(61.95% 0.154 323) |
| XYZ | xyz(31.4679, 21.6717, 49.5296) |
| Luminance | 0.2167 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Soft Purple
#A66FB5
ΔE00 4.25
Mediumorchid
#BA55D3
ΔE00 4.99
Pinky Purple
#C94CBE
ΔE00 5.37
Amethyst
#9B5FC0
ΔE00 5.46
Dark Lilac
#9C6DA5
ΔE00 6.63
Deep Lilac
#966EBD
ΔE00 6.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B162BB #6CBB62
analogous
#8462BB #B162BB #BB6298
triadic
#B162BB #BBB162 #62BBB1
tetradic
#B162BB #BB8462 #6CBB62 #6298BB
square
#B162BB #BB8462 #6CBB62 #6298BB
split-complementary
#B162BB #98BB62 #62BB84
monochromatic
#6A3171 #92449C #B162BB #C68DCD #DBB7E0
Accessibility & contrast
On white
3.94
#B162BB on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.33
#B162BB on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B162BB
5.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B162BB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B162BB | 1.00 | 3.94 | 5.33 | 5.33 |
| #FFFFFF | 3.94 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.33 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.33 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#567ABE
Deuteranopia (green-blind)
#6D83B8
Tritanopia (blue-blind)
#B46D86
Achromatopsia (no color)
#808080
Design tokens & code
CSS
--color: #b162bb; /* rgb */ color: rgb(177, 98, 187); /* oklch */ color: oklch(61.9% 0.154 323.0);
Tailwind
colors: {
custom: {
50: '#ca91d0',
500: '#b162bb',
950: '#000000',
},
}SCSS
$custom: #b162bb; $custom-light: #ca91d0; $custom-dark: #000000;
JSON
{
"hex": "#b162bb",
"rgb": {
"r": 177,
"g": 98,
"b": 187
},
"hsl": {
"h": 293.258,
"s": 39.556,
"l": 55.882
},
"oklch": {
"l": 0.61946,
"c": 0.15404,
"h": 323
},
"luminance": 0.2167
}Semantic roles & 50–950 ramp
primary
#B162BB
secondary
#AECFAA
accent
#CF5866
background
#FCF9FC
surface
#F9F1F9
border
#D2CBD2
text
#130D14
muted
#827E82