#B162CD#B162CD
#B162CD is a light, vivid purple. Relative luminance 0.225; OKLCH L 62.9% C 0.173 H 316.6°. Best body text is #000000 at 5.50:1 contrast (WCAG AA passes).
Color values
| HEX | #B162CD |
|---|---|
| RGB | rgb(177, 98, 205) |
| HSL | hsl(284, 52%, 59%) |
| HSV | hsv(284, 52%, 80%) |
| CMYK | cmyk(13.7%, 52.2%, 0%, 19.6%) |
| CIE-LAB | lab(54.54, 49.18, -42.63) |
| CIE-LCH | lch(54.54, 65.08, 319.08°) |
| OKLab | oklab(62.87% 0.1253 -0.1186) |
| OKLCH | oklch(62.87% 0.173 316.6) |
| XYZ | xyz(33.5170, 22.4913, 60.3215) |
| Luminance | 0.2249 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Mediumorchid
#BA55D3
ΔE00 2.95
Amethyst
#9B5FC0
ΔE00 4.66
Soft Purple
#A66FB5
ΔE00 6.05
Deep Lilac
#966EBD
ΔE00 6.46
Pinky Purple
#C94CBE
ΔE00 6.57
Lightish Purple
#A552E6
ΔE00 6.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B162CD #7ECD62
analogous
#7C62CD #B162CD #CD62B4
triadic
#B162CD #CDB162 #62CDB1
tetradic
#B162CD #CD7C62 #7ECD62 #62B4CD
square
#B162CD #CD7C62 #7ECD62 #62B4CD
split-complementary
#B162CD #B4CD62 #62CD7C
monochromatic
#712C89 #973AB7 #B162CD #C890DC #DFBFEB
Accessibility & contrast
On white
3.82
#B162CD on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.50
#B162CD on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #B162CD
5.50:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B162CD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B162CD | 1.00 | 3.82 | 5.50 | 5.50 |
| #FFFFFF | 3.82 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.50 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.50 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4B7ED1
Deuteranopia (green-blind)
#6485CA
Tritanopia (blue-blind)
#B0728E
Achromatopsia (no color)
#828282
Design tokens & code
CSS
--color: #b162cd; /* rgb */ color: rgb(177, 98, 205); /* oklch */ color: oklch(62.9% 0.173 316.6);
Tailwind
colors: {
custom: {
50: '#ca91dd',
500: '#b162cd',
950: '#000000',
},
}SCSS
$custom: #b162cd; $custom-light: #ca91dd; $custom-dark: #000000;
JSON
{
"hex": "#b162cd",
"rgb": {
"r": 177,
"g": 98,
"b": 205
},
"hsl": {
"h": 284.299,
"s": 51.691,
"l": 59.412
},
"oklch": {
"l": 0.62871,
"c": 0.17257,
"h": 316.6
},
"luminance": 0.2249
}Semantic roles & 50–950 ramp
primary
#B162CD
secondary
#BBDAB1
accent
#DB4D72
background
#FCF9FD
surface
#F9F1FB
border
#D2CBD4
text
#140D15
muted
#827E83