#A42F98#A42F98
#A42F98 is a mid, vivid purple. Relative luminance 0.122; OKLCH L 52.1% C 0.191 H 332.4°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).
Color values
| HEX | #A42F98 |
|---|---|
| RGB | rgb(164, 47, 152) |
| HSL | hsl(306, 55%, 41%) |
| HSV | hsv(306, 71%, 64%) |
| CMYK | cmyk(0%, 71.3%, 7.3%, 35.7%) |
| CIE-LAB | lab(41.52, 59.02, -32.25) |
| CIE-LCH | lch(41.52, 67.26, 331.35°) |
| OKLab | oklab(52.11% 0.1697 -0.0885) |
| OKLCH | oklch(52.11% 0.191 332.4) |
| XYZ | xyz(21.9939, 12.1943, 30.8950) |
| Luminance | 0.1219 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 3.06
Ugly Purple
#A442A0
ΔE00 3.53
Medium Purple
#9E43A2
ΔE00 3.87
Barney Purple
#A00498
ΔE00 4.33
Barney
#AC1DB8
ΔE00 5.56
Purply
#983FB2
ΔE00 6.23
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A42F98 #2FA43B
analogous
#762FA4 #A42F98 #A42F5E
triadic
#A42F98 #98A42F #2F98A4
tetradic
#A42F98 #A4762F #2FA43B #2F5EA4
square
#A42F98 #A4762F #2FA43B #2F5EA4
split-complementary
#A42F98 #5EA42F #2FA476
monochromatic
#451440 #74216C #A42F98 #CA46BD #D876CE
Accessibility & contrast
On white
6.11
#A42F98 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.44
#A42F98 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A42F98
6.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A42F98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A42F98 | 1.00 | 6.11 | 3.44 | 6.11 |
| #FFFFFF | 6.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#29579B
Deuteranopia (green-blind)
#546895
Tritanopia (blue-blind)
#AB3B60
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #a42f98; /* rgb */ color: rgb(164, 47, 152); /* oklch */ color: oklch(52.1% 0.191 332.4);
Tailwind
colors: {
custom: {
50: '#c273b6',
500: '#a42f98',
950: '#000000',
},
}SCSS
$custom: #a42f98; $custom-light: #c273b6; $custom-dark: #000000;
JSON
{
"hex": "#a42f98",
"rgb": {
"r": 164,
"g": 47,
"b": 152
},
"hsl": {
"h": 306.154,
"s": 55.45,
"l": 41.373
},
"oklch": {
"l": 0.52108,
"c": 0.19136,
"h": 332.4
},
"luminance": 0.12193
}Semantic roles & 50–950 ramp
primary
#A42F98
secondary
#6FC077
accent
#DF5849
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80