#A42A9B#A42A9B
#A42A9B is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.8% C 0.199 H 331.3°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).
Color values
| HEX | #A42A9B |
|---|---|
| RGB | rgb(164, 42, 155) |
| HSL | hsl(304, 59%, 40%) |
| HSV | hsv(304, 74%, 64%) |
| CMYK | cmyk(0%, 74.4%, 5.5%, 35.7%) |
| CIE-LAB | lab(41.08, 61.20, -34.75) |
| CIE-LCH | lch(41.08, 70.37, 330.41°) |
| OKLab | oklab(51.84% 0.1747 -0.0957) |
| OKLCH | oklch(51.84% 0.199 331.3) |
| XYZ | xyz(22.0542, 11.9168, 32.1426) |
| Luminance | 0.1192 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 3.01
Barney Purple
#A00498
ΔE00 3.55
Ugly Purple
#A442A0
ΔE00 4.08
Medium Purple
#9E43A2
ΔE00 4.20
Barney
#AC1DB8
ΔE00 4.82
Purply
#983FB2
ΔE00 5.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A42A9B #2AA433
analogous
#702AA4 #A42A9B #A42A5E
triadic
#A42A9B #9BA42A #2A9BA4
tetradic
#A42A9B #A4702A #2AA433 #2A5EA4
square
#A42A9B #A4702A #2AA433 #2A5EA4
split-complementary
#A42A9B #5EA42A #2AA470
monochromatic
#43113F #731E6D #A42A9B #CD3EC3 #DA6ED2
Accessibility & contrast
On white
6.21
#A42A9B on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.38
#A42A9B on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A42A9B
6.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A42A9B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A42A9B | 1.00 | 6.21 | 3.38 | 6.21 |
| #FFFFFF | 6.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#1F569E
Deuteranopia (green-blind)
#516798
Tritanopia (blue-blind)
#AB3960
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #a42a9b; /* rgb */ color: rgb(164, 42, 155); /* oklch */ color: oklch(51.8% 0.199 331.3);
Tailwind
colors: {
custom: {
50: '#c371b9',
500: '#a42a9b',
950: '#000000',
},
}SCSS
$custom: #a42a9b; $custom-light: #c371b9; $custom-dark: #000000;
JSON
{
"hex": "#a42a9b",
"rgb": {
"r": 164,
"g": 42,
"b": 155
},
"hsl": {
"h": 304.426,
"s": 59.223,
"l": 40.392
},
"oklch": {
"l": 0.51843,
"c": 0.19924,
"h": 331.3
},
"luminance": 0.11915
}Semantic roles & 50–950 ramp
primary
#A42A9B
secondary
#69C16F
accent
#E25145
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80