#A158BB#A158BB
#A158BB is a mid, vivid purple. Relative luminance 0.181; OKLCH L 58.6% C 0.162 H 316.5°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).
Color values
| HEX | #A158BB |
|---|---|
| RGB | rgb(161, 88, 187) |
| HSL | hsl(284, 42%, 54%) |
| HSV | hsv(284, 53%, 73%) |
| CMYK | cmyk(13.9%, 52.9%, 0%, 26.7%) |
| CIE-LAB | lab(49.67, 46.25, -40.12) |
| CIE-LCH | lch(49.67, 61.22, 319.06°) |
| OKLab | oklab(58.55% 0.1177 -0.1117) |
| OKLCH | oklch(58.55% 0.162 316.5) |
| XYZ | xyz(27.1560, 18.1453, 49.0760) |
| Luminance | 0.1814 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Amethyst
#9B5FC0
ΔE00 2.42
Deep Lavender
#8D5EB7
ΔE00 4.37
Mediumorchid
#BA55D3
ΔE00 5.42
Purply
#983FB2
ΔE00 6.53
Medium Purple
#9E43A2
ΔE00 6.62
Deep Lilac
#966EBD
ΔE00 6.66
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A158BB #72BB58
analogous
#7058BB #A158BB #BB58A4
triadic
#A158BB #BBA158 #58BBA1
tetradic
#A158BB #BB7058 #72BB58 #58A4BB
square
#A158BB #BB7058 #72BB58 #58A4BB
split-complementary
#A158BB #A4BB58 #58BB70
monochromatic
#5C2C6C #803E98 #A158BB #B983CD #D2AFDE
Accessibility & contrast
On white
4.54
#A158BB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.63
#A158BB on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A158BB
4.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A158BB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A158BB | 1.00 | 4.54 | 4.63 | 4.63 |
| #FFFFFF | 4.54 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.63 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.63 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4272BE
Deuteranopia (green-blind)
#5A78B8
Tritanopia (blue-blind)
#A06781
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #a158bb; /* rgb */ color: rgb(161, 88, 187); /* oklch */ color: oklch(58.6% 0.162 316.5);
Tailwind
colors: {
custom: {
50: '#bf8ad0',
500: '#a158bb',
950: '#000000',
},
}SCSS
$custom: #a158bb; $custom-light: #bf8ad0; $custom-dark: #000000;
JSON
{
"hex": "#a158bb",
"rgb": {
"r": 161,
"g": 88,
"b": 187
},
"hsl": {
"h": 284.242,
"s": 42.128,
"l": 53.922
},
"oklch": {
"l": 0.5855,
"c": 0.16228,
"h": 316.5
},
"luminance": 0.18144
}Semantic roles & 50–950 ramp
primary
#A158BB
secondary
#ADCDA2
accent
#D25676
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#120C14
muted
#817D82