#A22F97#A22F97
#A22F97 is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.7% C 0.189 H 332.1°. Best body text is #FFFFFF at 6.20:1 contrast (WCAG AA passes).
Color values
| HEX | #A22F97 |
|---|---|
| RGB | rgb(162, 47, 151) |
| HSL | hsl(306, 55%, 41%) |
| HSV | hsv(306, 71%, 64%) |
| CMYK | cmyk(0%, 71%, 6.8%, 36.5%) |
| CIE-LAB | lab(41.14, 58.38, -32.27) |
| CIE-LCH | lch(41.14, 66.71, 331.07°) |
| OKLab | oklab(51.75% 0.1675 -0.0887) |
| OKLCH | oklch(51.75% 0.189 332.1) |
| XYZ | xyz(21.5028, 11.9505, 30.4463) |
| Luminance | 0.1195 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 2.67
Ugly Purple
#A442A0
ΔE00 3.72
Medium Purple
#9E43A2
ΔE00 3.95
Barney Purple
#A00498
ΔE00 4.12
Barney
#AC1DB8
ΔE00 5.66
Purply
#983FB2
ΔE00 6.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A22F97 #2FA23A
analogous
#732FA2 #A22F97 #A22F5D
triadic
#A22F97 #97A22F #2F97A2
tetradic
#A22F97 #A2732F #2FA23A #2F5DA2
square
#A22F97 #A2732F #2FA23A #2F5DA2
split-complementary
#A22F97 #5DA22F #2FA273
monochromatic
#43133F #73216B #A22F97 #C945BC #D775CD
Accessibility & contrast
On white
6.20
#A22F97 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.39
#A22F97 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A22F97
6.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A22F97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A22F97 | 1.00 | 6.20 | 3.39 | 6.20 |
| #FFFFFF | 6.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#28579A
Deuteranopia (green-blind)
#536794
Tritanopia (blue-blind)
#A93B5F
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #a22f97; /* rgb */ color: rgb(162, 47, 151); /* oklch */ color: oklch(51.7% 0.189 332.1);
Tailwind
colors: {
custom: {
50: '#c172b6',
500: '#a22f97',
950: '#000000',
},
}SCSS
$custom: #a22f97; $custom-light: #c172b6; $custom-dark: #000000;
JSON
{
"hex": "#a22f97",
"rgb": {
"r": 162,
"g": 47,
"b": 151
},
"hsl": {
"h": 305.739,
"s": 55.024,
"l": 40.98
},
"oklch": {
"l": 0.51749,
"c": 0.18949,
"h": 332.1
},
"luminance": 0.11949
}Semantic roles & 50–950 ramp
primary
#A22F97
secondary
#6EBF76
accent
#DE5849
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130911
muted
#827B80