#A22F9D#A22F9D
#A22F9D is a mid, vivid purple. Relative luminance 0.121; OKLCH L 52.1% C 0.194 H 329.8°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).
Color values
| HEX | #A22F9D |
|---|---|
| RGB | rgb(162, 47, 157) |
| HSL | hsl(303, 55%, 41%) |
| HSV | hsv(303, 71%, 64%) |
| CMYK | cmyk(0%, 71%, 3.1%, 36.5%) |
| CIE-LAB | lab(41.45, 59.36, -35.39) |
| CIE-LCH | lch(41.45, 69.11, 329.20°) |
| OKLab | oklab(52.08% 0.1678 -0.0976) |
| OKLCH | oklch(52.08% 0.194 329.8) |
| XYZ | xyz(22.0025, 12.1504, 33.0782) |
| Luminance | 0.1215 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 3.09
Medium Purple
#9E43A2
ΔE00 3.49
Ugly Purple
#A442A0
ΔE00 3.55
Barney Purple
#A00498
ΔE00 4.03
Barney
#AC1DB8
ΔE00 4.60
Purply
#983FB2
ΔE00 5.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A22F9D #2FA234
analogous
#6D2FA2 #A22F9D #A22F63
triadic
#A22F9D #9DA22F #2F9DA2
tetradic
#A22F9D #A26D2F #2FA234 #2F63A2
square
#A22F9D #A26D2F #2FA234 #2F63A2
split-complementary
#A22F9D #63A22F #2FA26D
monochromatic
#431341 #73216F #A22F9D #C945C3 #D775D3
Accessibility & contrast
On white
6.12
#A22F9D on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.43
#A22F9D on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A22F9D
6.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A22F9D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A22F9D | 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)
#2258A0
Deuteranopia (green-blind)
#50679A
Tritanopia (blue-blind)
#A83E63
Achromatopsia (no color)
#626262
Design tokens & code
CSS
--color: #a22f9d; /* rgb */ color: rgb(162, 47, 157); /* oklch */ color: oklch(52.1% 0.194 329.8);
Tailwind
colors: {
custom: {
50: '#c173ba',
500: '#a22f9d',
950: '#000000',
},
}SCSS
$custom: #a22f9d; $custom-light: #c173ba; $custom-dark: #000000;
JSON
{
"hex": "#a22f9d",
"rgb": {
"r": 162,
"g": 47,
"b": 157
},
"hsl": {
"h": 302.609,
"s": 55.024,
"l": 40.98
},
"oklch": {
"l": 0.5208,
"c": 0.19412,
"h": 329.8
},
"luminance": 0.12149
}Semantic roles & 50–950 ramp
primary
#A22F9D
secondary
#6EBF72
accent
#DE5049
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130912
muted
#827B81