#A331A2#A331A2
#A331A2 is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.7% C 0.196 H 328.3°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).
Color values
| HEX | #A331A2 |
|---|---|
| RGB | rgb(163, 49, 162) |
| HSL | hsl(301, 54%, 42%) |
| HSV | hsv(301, 70%, 64%) |
| CMYK | cmyk(0%, 69.9%, 0.6%, 36.1%) |
| CIE-LAB | lab(42.14, 59.70, -37.29) |
| CIE-LCH | lch(42.14, 70.39, 328.01°) |
| OKLab | oklab(52.7% 0.167 -0.1031) |
| OKLCH | oklch(52.7% 0.196 328.3) |
| XYZ | xyz(22.7239, 12.5934, 35.4093) |
| Luminance | 0.1259 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Medium Purple
#9E43A2
ΔE00 3.05
Ugly Purple
#A442A0
ΔE00 3.25
Warm Purple
#952E8F
ΔE00 3.87
Barney
#AC1DB8
ΔE00 3.90
Purply
#983FB2
ΔE00 4.40
Barney Purple
#A00498
ΔE00 4.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A331A2 #31A332
analogous
#6B31A3 #A331A2 #A33169
triadic
#A331A2 #A2A331 #31A2A3
tetradic
#A331A2 #A36B31 #31A332 #3169A3
square
#A331A2 #A36B31 #31A332 #3169A3
split-complementary
#A331A2 #69A331 #31A36B
monochromatic
#451544 #742373 #A331A2 #C849C7 #D678D6
Accessibility & contrast
On white
5.97
#A331A2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.52
#A331A2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A331A2
5.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A331A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A331A2 | 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)
#205AA5
Deuteranopia (green-blind)
#4F699F
Tritanopia (blue-blind)
#A84166
Achromatopsia (no color)
#636363
Design tokens & code
CSS
--color: #a331a2; /* rgb */ color: rgb(163, 49, 162); /* oklch */ color: oklch(52.7% 0.196 328.3);
Tailwind
colors: {
custom: {
50: '#c274be',
500: '#a331a2',
950: '#000000',
},
}SCSS
$custom: #a331a2; $custom-light: #c274be; $custom-dark: #000000;
JSON
{
"hex": "#a331a2",
"rgb": {
"r": 163,
"g": 49,
"b": 162
},
"hsl": {
"h": 300.526,
"s": 53.774,
"l": 41.569
},
"oklch": {
"l": 0.52695,
"c": 0.19625,
"h": 328.3
},
"luminance": 0.12592
}Semantic roles & 50–950 ramp
primary
#A331A2
secondary
#71BF72
accent
#DD4C4B
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81