#A7228E#A7228E
#A7228E is a mid, vivid pink. Relative luminance 0.113; OKLCH L 51.0% C 0.200 H 337.2°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).
Color values
| HEX | #A7228E |
|---|---|
| RGB | rgb(167, 34, 142) |
| HSL | hsl(311, 66%, 39%) |
| HSV | hsv(311, 80%, 65%) |
| CMYK | cmyk(0%, 79.6%, 15%, 34.5%) |
| CIE-LAB | lab(40.11, 62.30, -28.36) |
| CIE-LCH | lch(40.11, 68.46, 335.52°) |
| OKLab | oklab(51.02% 0.184 -0.0772) |
| OKLCH | oklch(51.02% 0.2 337.2) |
| XYZ | xyz(21.3913, 11.3146, 26.6433) |
| Luminance | 0.1131 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Warm Purple
#952E8F
ΔE00 3.56
Barney Purple
#A00498
ΔE00 4.15
Ugly Purple
#A442A0
ΔE00 5.67
Medium Purple
#9E43A2
ΔE00 6.22
Barney
#AC1DB8
ΔE00 7.24
Light Eggplant
#894585
ΔE00 7.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A7228E #22A73B
analogous
#7E22A7 #A7228E #A7224C
triadic
#A7228E #8EA722 #228EA7
tetradic
#A7228E #A77E22 #22A73B #224CA7
square
#A7228E #A77E22 #22A73B #224CA7
split-complementary
#A7228E #4CA722 #22A77E
monochromatic
#410D38 #741863 #A7228E #D531B6 #DF64C8
Accessibility & contrast
On white
6.44
#A7228E on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.26
#A7228E on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A7228E
6.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A7228E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A7228E | 1.00 | 6.44 | 3.26 | 6.44 |
| #FFFFFF | 6.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.26 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#275291
Deuteranopia (green-blind)
#56668B
Tritanopia (blue-blind)
#B02B57
Achromatopsia (no color)
#5E5E5E
Design tokens & code
CSS
--color: #a7228e; /* rgb */ color: rgb(167, 34, 142); /* oklch */ color: oklch(51.0% 0.200 337.2);
Tailwind
colors: {
custom: {
50: '#c56eaf',
500: '#a7228e',
950: '#000000',
},
}SCSS
$custom: #a7228e; $custom-light: #c56eaf; $custom-dark: #000000;
JSON
{
"hex": "#a7228e",
"rgb": {
"r": 167,
"g": 34,
"b": 142
},
"hsl": {
"h": 311.278,
"s": 66.169,
"l": 39.412
},
"oklch": {
"l": 0.51022,
"c": 0.19955,
"h": 337.2
},
"luminance": 0.11313
}Semantic roles & 50–950 ramp
primary
#A7228E
secondary
#60C573
accent
#E95F3F
background
#FCF7FA
surface
#F9EDF4
border
#D2C8CE
text
#130810
muted
#827B7F