#A151BA#A151BA
#A151BA is a mid, vivid purple. Relative luminance 0.170; OKLCH L 57.5% C 0.172 H 317.5°. Best body text is #FFFFFF at 4.77:1 contrast (WCAG AA passes).
Color values
| HEX | #A151BA |
|---|---|
| RGB | rgb(161, 81, 186) |
| HSL | hsl(286, 43%, 52%) |
| HSV | hsv(286, 56%, 73%) |
| CMYK | cmyk(13.4%, 56.5%, 0%, 27.1%) |
| CIE-LAB | lab(48.27, 49.62, -41.75) |
| CIE-LCH | lch(48.27, 64.85, 319.92°) |
| OKLab | oklab(57.5% 0.1271 -0.1164) |
| OKLCH | oklch(57.5% 0.172 317.5) |
| XYZ | xyz(26.5020, 17.0081, 48.3317) |
| Luminance | 0.1701 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Amethyst
#9B5FC0
ΔE00 3.84
Purply
#983FB2
ΔE00 4.86
Deep Lavender
#8D5EB7
ΔE00 5.07
Medium Purple
#9E43A2
ΔE00 5.32
Ugly Purple
#A442A0
ΔE00 5.88
Mediumorchid
#BA55D3
ΔE00 6.00
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A151BA #6ABA51
analogous
#6C51BA #A151BA #BA519F
triadic
#A151BA #BAA151 #51BAA1
tetradic
#A151BA #BA6C51 #6ABA51 #519FBA
square
#A151BA #BA6C51 #6ABA51 #519FBA
split-complementary
#A151BA #9FBA51 #51BA6C
monochromatic
#592968 #7E3A93 #A151BA #B97DCB #D0A9DD
Accessibility & contrast
On white
4.77
#A151BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.40
#A151BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A151BA
4.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A151BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A151BA | 1.00 | 4.77 | 4.40 | 4.77 |
| #FFFFFF | 4.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#396DBD
Deuteranopia (green-blind)
#5575B7
Tritanopia (blue-blind)
#A0627E
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #a151ba; /* rgb */ color: rgb(161, 81, 186); /* oklch */ color: oklch(57.5% 0.172 317.5);
Tailwind
colors: {
custom: {
50: '#bf86cf',
500: '#a151ba',
950: '#000000',
},
}SCSS
$custom: #a151ba; $custom-light: #bf86cf; $custom-dark: #000000;
JSON
{
"hex": "#a151ba",
"rgb": {
"r": 161,
"g": 81,
"b": 186
},
"hsl": {
"h": 285.714,
"s": 43.21,
"l": 52.353
},
"oklch": {
"l": 0.57503,
"c": 0.17235,
"h": 317.5
},
"luminance": 0.17007
}Semantic roles & 50–950 ramp
primary
#A151BA
secondary
#A7CA9D
accent
#D35573
background
#FCF8FC
surface
#F8F0F9
border
#D1CBD2
text
#120B14
muted
#817C82