#A231A2#A231A2
#A231A2 is a mid, vivid purple. Relative luminance 0.125; OKLCH L 52.5% C 0.196 H 327.9°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).
Color values
| HEX | #A231A2 |
|---|---|
| RGB | rgb(162, 49, 162) |
| HSL | hsl(300, 54%, 41%) |
| HSV | hsv(300, 70%, 64%) |
| CMYK | cmyk(0%, 69.8%, 0%, 36.5%) |
| CIE-LAB | lab(41.98, 59.47, -37.55) |
| CIE-LCH | lch(41.98, 70.34, 327.73°) |
| OKLab | oklab(52.55% 0.1659 -0.1039) |
| OKLCH | oklch(52.55% 0.196 327.9) |
| XYZ | xyz(22.5199, 12.4882, 35.3998) |
| Luminance | 0.1249 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Medium Purple
#9E43A2
ΔE00 3.09
Ugly Purple
#A442A0
ΔE00 3.37
Warm Purple
#952E8F
ΔE00 3.78
Barney
#AC1DB8
ΔE00 3.88
Purply
#983FB2
ΔE00 4.29
Barney Purple
#A00498
ΔE00 4.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A231A2 #31A231
analogous
#6A31A2 #A231A2 #A2316A
triadic
#A231A2 #A2A231 #31A2A2
tetradic
#A231A2 #A26A31 #31A231 #316AA2
square
#A231A2 #A26A31 #31A231 #316AA2
split-complementary
#A231A2 #6AA231 #31A26A
monochromatic
#441544 #732373 #A231A2 #C848C8 #D677D6
Accessibility & contrast
On white
6.00
#A231A2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.50
#A231A2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A231A2
6.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A231A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A231A2 | 1.00 | 6.00 | 3.50 | 6.00 |
| #FFFFFF | 6.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.50 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1E5AA5
Deuteranopia (green-blind)
#4E689F
Tritanopia (blue-blind)
#A74166
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #a231a2; /* rgb */ color: rgb(162, 49, 162); /* oklch */ color: oklch(52.5% 0.196 327.9);
Tailwind
colors: {
custom: {
50: '#c174be',
500: '#a231a2',
950: '#000000',
},
}SCSS
$custom: #a231a2; $custom-light: #c174be; $custom-dark: #000000;
JSON
{
"hex": "#a231a2",
"rgb": {
"r": 162,
"g": 49,
"b": 162
},
"hsl": {
"h": 300,
"s": 53.555,
"l": 41.373
},
"oklch": {
"l": 0.52547,
"c": 0.19573,
"h": 327.9
},
"luminance": 0.12487
}Semantic roles & 50–950 ramp
primary
#A231A2
secondary
#71BE71
accent
#DD4B4B
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81