#A22C98#A22C98
#A22C98 is a mid, vivid purple. Relative luminance 0.117; OKLCH L 51.5% C 0.194 H 331.7°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).
Color values
| HEX | #A22C98 |
|---|---|
| RGB | rgb(162, 44, 152) |
| HSL | hsl(305, 57%, 40%) |
| HSV | hsv(305, 73%, 64%) |
| CMYK | cmyk(0%, 72.8%, 6.2%, 36.5%) |
| CIE-LAB | lab(40.82, 59.60, -33.38) |
| CIE-LCH | lch(40.82, 68.31, 330.75°) |
| OKLab | oklab(51.54% 0.1706 -0.0918) |
| OKLCH | oklch(51.54% 0.194 331.7) |
| XYZ | xyz(21.4685, 11.7515, 30.8372) |
| Luminance | 0.1175 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 2.56
Barney Purple
#A00498
ΔE00 3.64
Ugly Purple
#A442A0
ΔE00 4.08
Medium Purple
#9E43A2
ΔE00 4.20
Barney
#AC1DB8
ΔE00 5.37
Purply
#983FB2
ΔE00 6.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A22C98 #2CA236
analogous
#712CA2 #A22C98 #A22C5D
triadic
#A22C98 #98A22C #2C98A2
tetradic
#A22C98 #A2712C #2CA236 #2C5DA2
square
#A22C98 #A2712C #2CA236 #2C5DA2
split-complementary
#A22C98 #5DA22C #2CA271
monochromatic
#42123E #721F6B #A22C98 #CB40BF #D870CF
Accessibility & contrast
On white
6.27
#A22C98 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.35
#A22C98 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A22C98
6.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A22C98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A22C98 | 1.00 | 6.27 | 3.35 | 6.27 |
| #FFFFFF | 6.27 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.27 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#23569B
Deuteranopia (green-blind)
#516695
Tritanopia (blue-blind)
#A9395F
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #a22c98; /* rgb */ color: rgb(162, 44, 152); /* oklch */ color: oklch(51.5% 0.194 331.7);
Tailwind
colors: {
custom: {
50: '#c171b7',
500: '#a22c98',
950: '#000000',
},
}SCSS
$custom: #a22c98; $custom-light: #c171b7; $custom-dark: #000000;
JSON
{
"hex": "#a22c98",
"rgb": {
"r": 162,
"g": 44,
"b": 152
},
"hsl": {
"h": 305.085,
"s": 57.282,
"l": 40.392
},
"oklch": {
"l": 0.51536,
"c": 0.19372,
"h": 331.7
},
"luminance": 0.1175
}Semantic roles & 50–950 ramp
primary
#A22C98
secondary
#6ABF72
accent
#E15447
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80