#A231A5#A231A5
#A231A5 is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.7% C 0.198 H 326.8°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).
Color values
| HEX | #A231A5 |
|---|---|
| RGB | rgb(162, 49, 165) |
| HSL | hsl(298, 54%, 42%) |
| HSV | hsv(298, 70%, 65%) |
| CMYK | cmyk(1.8%, 70.3%, 0%, 35.3%) |
| CIE-LAB | lab(42.15, 59.99, -39.08) |
| CIE-LCH | lch(42.15, 71.59, 326.91°) |
| OKLab | oklab(52.72% 0.1659 -0.1084) |
| OKLCH | oklch(52.72% 0.198 326.8) |
| XYZ | xyz(22.7897, 12.5962, 36.8210) |
| Luminance | 0.1260 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Medium Purple
#9E43A2
ΔE00 3.14
Barney
#AC1DB8
ΔE00 3.43
Ugly Purple
#A442A0
ΔE00 3.56
Purply
#983FB2
ΔE00 3.85
Warm Purple
#952E8F
ΔE00 4.18
Barney Purple
#A00498
ΔE00 4.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A231A5 #34A531
analogous
#6831A5 #A231A5 #A5316E
triadic
#A231A5 #A5A231 #31A5A2
tetradic
#A231A5 #A56831 #34A531 #316EA5
square
#A231A5 #A56831 #34A531 #316EA5
split-complementary
#A231A5 #6EA531 #31A568
monochromatic
#451547 #742376 #A231A5 #C64AC9 #D579D7
Accessibility & contrast
On white
5.97
#A231A5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.52
#A231A5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A231A5
5.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A231A5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A231A5 | 1.00 | 5.97 | 3.52 | 5.97 |
| #FFFFFF | 5.97 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.52 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.97 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1A5AA8
Deuteranopia (green-blind)
#4D68A2
Tritanopia (blue-blind)
#A74368
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #a231a5; /* rgb */ color: rgb(162, 49, 165); /* oklch */ color: oklch(52.7% 0.198 326.8);
Tailwind
colors: {
custom: {
50: '#c174c0',
500: '#a231a5',
950: '#000000',
},
}SCSS
$custom: #a231a5; $custom-light: #c174c0; $custom-dark: #000000;
JSON
{
"hex": "#a231a5",
"rgb": {
"r": 162,
"g": 49,
"b": 165
},
"hsl": {
"h": 298.448,
"s": 54.206,
"l": 41.961
},
"oklch": {
"l": 0.5272,
"c": 0.19816,
"h": 326.8
},
"luminance": 0.12595
}Semantic roles & 50–950 ramp
primary
#A231A5
secondary
#74C072
accent
#DE4A4E
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81