#A42F97#A42F97
#A42F97 is a mid, vivid purple. Relative luminance 0.122; OKLCH L 52.1% C 0.191 H 332.8°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).
Color values
| HEX | #A42F97 |
|---|---|
| RGB | rgb(164, 47, 151) |
| HSL | hsl(307, 55%, 41%) |
| HSV | hsv(307, 71%, 64%) |
| CMYK | cmyk(0%, 71.3%, 7.9%, 35.7%) |
| CIE-LAB | lab(41.47, 58.86, -31.72) |
| CIE-LCH | lch(41.47, 66.87, 331.68°) |
| OKLab | oklab(52.05% 0.1696 -0.087) |
| OKLCH | oklch(52.05% 0.191 332.8) |
| XYZ | xyz(21.9124, 12.1617, 30.4655) |
| Luminance | 0.1216 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 3.04
Ugly Purple
#A442A0
ΔE00 3.59
Medium Purple
#9E43A2
ΔE00 3.98
Barney Purple
#A00498
ΔE00 4.37
Barney
#AC1DB8
ΔE00 5.74
Purply
#983FB2
ΔE00 6.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A42F97 #2FA43C
analogous
#772FA4 #A42F97 #A42F5D
triadic
#A42F97 #97A42F #2F97A4
tetradic
#A42F97 #A4772F #2FA43C #2F5DA4
square
#A42F97 #A4772F #2FA43C #2F5DA4
split-complementary
#A42F97 #5DA42F #2FA477
monochromatic
#45143F #74216B #A42F97 #CA46BB #D876CD
Accessibility & contrast
On white
6.12
#A42F97 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.43
#A42F97 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A42F97
6.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A42F97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A42F97 | 1.00 | 6.12 | 3.43 | 6.12 |
| #FFFFFF | 6.12 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.43 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.12 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2A579A
Deuteranopia (green-blind)
#556894
Tritanopia (blue-blind)
#AB3B5F
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #a42f97; /* rgb */ color: rgb(164, 47, 151); /* oklch */ color: oklch(52.1% 0.191 332.8);
Tailwind
colors: {
custom: {
50: '#c273b6',
500: '#a42f97',
950: '#000000',
},
}SCSS
$custom: #a42f97; $custom-light: #c273b6; $custom-dark: #000000;
JSON
{
"hex": "#a42f97",
"rgb": {
"r": 164,
"g": 47,
"b": 151
},
"hsl": {
"h": 306.667,
"s": 55.45,
"l": 41.373
},
"oklch": {
"l": 0.52055,
"c": 0.1906,
"h": 332.8
},
"luminance": 0.1216
}Semantic roles & 50–950 ramp
primary
#A42F97
secondary
#6FC078
accent
#DF5A49
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80