#A42A98#A42A98
#A42A98 is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.7% C 0.197 H 332.4°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).
Color values
| HEX | #A42A98 |
|---|---|
| RGB | rgb(164, 42, 152) |
| HSL | hsl(306, 59%, 40%) |
| HSV | hsv(306, 74%, 64%) |
| CMYK | cmyk(0%, 74.4%, 7.3%, 35.7%) |
| CIE-LAB | lab(40.92, 60.72, -33.19) |
| CIE-LCH | lch(40.92, 69.20, 331.34°) |
| OKLab | oklab(51.68% 0.1746 -0.0912) |
| OKLCH | oklch(51.68% 0.197 332.4) |
| XYZ | xyz(21.8054, 11.8173, 30.8322) |
| Luminance | 0.1182 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 2.83
Barney Purple
#A00498
ΔE00 3.62
Ugly Purple
#A442A0
ΔE00 4.18
Medium Purple
#9E43A2
ΔE00 4.41
Barney
#AC1DB8
ΔE00 5.37
Purply
#983FB2
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A42A98 #2AA436
analogous
#732AA4 #A42A98 #A42A5B
triadic
#A42A98 #98A42A #2A98A4
tetradic
#A42A98 #A4732A #2AA436 #2A5BA4
square
#A42A98 #A4732A #2AA436 #2A5BA4
split-complementary
#A42A98 #5BA42A #2AA473
monochromatic
#43113E #731E6B #A42A98 #CD3EBF #DA6ECF
Accessibility & contrast
On white
6.24
#A42A98 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.36
#A42A98 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A42A98
6.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A42A98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A42A98 | 1.00 | 6.24 | 3.36 | 6.24 |
| #FFFFFF | 6.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#23559B
Deuteranopia (green-blind)
#526795
Tritanopia (blue-blind)
#AB375F
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #a42a98; /* rgb */ color: rgb(164, 42, 152); /* oklch */ color: oklch(51.7% 0.197 332.4);
Tailwind
colors: {
custom: {
50: '#c370b7',
500: '#a42a98',
950: '#000000',
},
}SCSS
$custom: #a42a98; $custom-light: #c370b7; $custom-dark: #000000;
JSON
{
"hex": "#a42a98",
"rgb": {
"r": 164,
"g": 42,
"b": 152
},
"hsl": {
"h": 305.902,
"s": 59.223,
"l": 40.392
},
"oklch": {
"l": 0.51677,
"c": 0.197,
"h": 332.4
},
"luminance": 0.11815
}Semantic roles & 50–950 ramp
primary
#A42A98
secondary
#69C172
accent
#E25545
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80