#A151A7#A151A7
#A151A7 is a mid, vivid purple. Relative luminance 0.163; OKLCH L 56.5% C 0.153 H 324.7°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).
Color values
| HEX | #A151A7 |
|---|---|
| RGB | rgb(161, 81, 167) |
| HSL | hsl(296, 35%, 49%) |
| HSV | hsv(296, 51%, 65%) |
| CMYK | cmyk(3.6%, 51.5%, 0%, 34.5%) |
| CIE-LAB | lab(47.30, 45.84, -32.15) |
| CIE-LCH | lch(47.30, 55.99, 324.96°) |
| OKLab | oklab(56.48% 0.1251 -0.0886) |
| OKLCH | oklch(56.48% 0.153 324.7) |
| XYZ | xyz(24.6148, 16.2532, 38.3924) |
| Luminance | 0.1625 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 3.47
Medium Purple
#9E43A2
ΔE00 3.47
Purply
#983FB2
ΔE00 5.85
Purpleish
#98568D
ΔE00 6.05
Purplish
#94568C
ΔE00 6.25
Amethyst
#9B5FC0
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A151A7 #57A751
analogous
#7651A7 #A151A7 #A75182
triadic
#A151A7 #A7A151 #51A7A1
tetradic
#A151A7 #A77651 #57A751 #5182A7
square
#A151A7 #A77651 #57A751 #5182A7
split-complementary
#A151A7 #82A751 #51A776
monochromatic
#522955 #793D7E #A151A7 #B978BD #CEA1D1
Accessibility & contrast
On white
4.94
#A151A7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.25
#A151A7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A151A7
4.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A151A7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A151A7 | 1.00 | 4.94 | 4.25 | 4.94 |
| #FFFFFF | 4.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#466AAA
Deuteranopia (green-blind)
#5F74A4
Tritanopia (blue-blind)
#A45B74
Achromatopsia (no color)
#707070
Design tokens & code
CSS
--color: #a151a7; /* rgb */ color: rgb(161, 81, 167); /* oklch */ color: oklch(56.5% 0.153 324.7);
Tailwind
colors: {
custom: {
50: '#bf85c1',
500: '#a151a7',
950: '#000000',
},
}SCSS
$custom: #a151a7; $custom-light: #bf85c1; $custom-dark: #000000;
JSON
{
"hex": "#a151a7",
"rgb": {
"r": 161,
"g": 81,
"b": 167
},
"hsl": {
"h": 295.814,
"s": 34.677,
"l": 48.627
},
"oklch": {
"l": 0.56479,
"c": 0.15331,
"h": 324.7
},
"luminance": 0.16252
}Semantic roles & 50–950 ramp
primary
#A151A7
secondary
#98BF95
accent
#CB5D65
background
#FCF8FB
surface
#F8EFF7
border
#D1CAD0
text
#120B12
muted
#817C81