#A22B98#A22B98
#A22B98 is a mid, vivid purple. Relative luminance 0.117; OKLCH L 51.5% C 0.195 H 331.7°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).
Color values
| HEX | #A22B98 |
|---|---|
| RGB | rgb(162, 43, 152) |
| HSL | hsl(305, 58%, 40%) |
| HSV | hsv(305, 73%, 64%) |
| CMYK | cmyk(0%, 73.5%, 6.2%, 36.5%) |
| CIE-LAB | lab(40.70, 59.93, -33.57) |
| CIE-LCH | lch(40.70, 68.69, 330.75°) |
| OKLab | oklab(51.45% 0.1716 -0.0923) |
| OKLCH | oklch(51.45% 0.195 331.7) |
| XYZ | xyz(21.4317, 11.6779, 30.8250) |
| Luminance | 0.1168 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Warm Purple
#952E8F
ΔE00 2.53
Barney Purple
#A00498
ΔE00 3.50
Ugly Purple
#A442A0
ΔE00 4.21
Medium Purple
#9E43A2
ΔE00 4.32
Barney
#AC1DB8
ΔE00 5.34
Purply
#983FB2
ΔE00 6.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A22B98 #2BA235
analogous
#702BA2 #A22B98 #A22B5C
triadic
#A22B98 #98A22B #2B98A2
tetradic
#A22B98 #A2702B #2BA235 #2B5CA2
square
#A22B98 #A2702B #2BA235 #2B5CA2
split-complementary
#A22B98 #5CA22B #2BA270
monochromatic
#41113D #721E6B #A22B98 #CC3EC0 #D96FD0
Accessibility & contrast
On white
6.30
#A22B98 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.34
#A22B98 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A22B98
6.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A22B98 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A22B98 | 1.00 | 6.30 | 3.34 | 6.30 |
| #FFFFFF | 6.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#22559B
Deuteranopia (green-blind)
#516695
Tritanopia (blue-blind)
#A9395F
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #a22b98; /* rgb */ color: rgb(162, 43, 152); /* oklch */ color: oklch(51.5% 0.195 331.7);
Tailwind
colors: {
custom: {
50: '#c171b7',
500: '#a22b98',
950: '#000000',
},
}SCSS
$custom: #a22b98; $custom-light: #c171b7; $custom-dark: #000000;
JSON
{
"hex": "#a22b98",
"rgb": {
"r": 162,
"g": 43,
"b": 152
},
"hsl": {
"h": 305.042,
"s": 58.049,
"l": 40.196
},
"oklch": {
"l": 0.51451,
"c": 0.19484,
"h": 331.7
},
"luminance": 0.11676
}Semantic roles & 50–950 ramp
primary
#A22B98
secondary
#69C070
accent
#E15447
background
#FCF7FB
surface
#F8EDF6
border
#D1C8D0
text
#130811
muted
#827B80