#A151B2#A151B2
#A151B2 is a mid, vivid purple. Relative luminance 0.167; OKLCH L 57.1% C 0.164 H 320.4°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).
Color values
| HEX | #A151B2 |
|---|---|
| RGB | rgb(161, 81, 178) |
| HSL | hsl(289, 39%, 51%) |
| HSV | hsv(289, 54%, 70%) |
| CMYK | cmyk(9.6%, 54.5%, 0%, 30.2%) |
| CIE-LAB | lab(47.85, 48.00, -37.75) |
| CIE-LCH | lch(47.85, 61.07, 321.82°) |
| OKLab | oklab(57.06% 0.1264 -0.1048) |
| OKLCH | oklch(57.06% 0.164 320.4) |
| XYZ | xyz(25.6753, 16.6774, 43.9775) |
| Luminance | 0.1668 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Medium Purple
#9E43A2
ΔE00 4.26
Amethyst
#9B5FC0
ΔE00 4.62
Ugly Purple
#A442A0
ΔE00 4.68
Purply
#983FB2
ΔE00 4.92
Deep Lavender
#8D5EB7
ΔE00 5.54
Mediumorchid
#BA55D3
ΔE00 6.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A151B2 #62B251
analogous
#7151B2 #A151B2 #B25192
triadic
#A151B2 #B2A151 #51B2A1
tetradic
#A151B2 #B27151 #62B251 #5192B2
square
#A151B2 #B27151 #62B251 #5192B2
split-complementary
#A151B2 #92B251 #51B271
monochromatic
#552A5F #7C3D89 #A151B2 #B87BC5 #CFA6D8
Accessibility & contrast
On white
4.84
#A151B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.34
#A151B2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A151B2
4.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A151B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A151B2 | 1.00 | 4.84 | 4.34 | 4.84 |
| #FFFFFF | 4.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3F6CB5
Deuteranopia (green-blind)
#5975AF
Tritanopia (blue-blind)
#A25F7A
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #a151b2; /* rgb */ color: rgb(161, 81, 178); /* oklch */ color: oklch(57.1% 0.164 320.4);
Tailwind
colors: {
custom: {
50: '#bf85c9',
500: '#a151b2',
950: '#000000',
},
}SCSS
$custom: #a151b2; $custom-light: #bf85c9; $custom-dark: #000000;
JSON
{
"hex": "#a151b2",
"rgb": {
"r": 161,
"g": 81,
"b": 178
},
"hsl": {
"h": 289.485,
"s": 38.645,
"l": 50.784
},
"oklch": {
"l": 0.57059,
"c": 0.16421,
"h": 320.4
},
"luminance": 0.16676
}Semantic roles & 50–950 ramp
primary
#A151B2
secondary
#A1C59A
accent
#CF596E
background
#FCF8FC
surface
#F8EFF8
border
#D1CAD1
text
#120B13
muted
#817C82