#A226A5#A226A5
#A226A5 is a mid, highly saturated purple. Relative luminance 0.118; OKLCH L 51.8% C 0.210 H 327.0°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).
Color values
| HEX | #A226A5 |
|---|---|
| RGB | rgb(162, 38, 165) |
| HSL | hsl(299, 63%, 40%) |
| HSV | hsv(299, 77%, 65%) |
| CMYK | cmyk(1.8%, 77%, 0%, 35.3%) |
| CIE-LAB | lab(40.87, 63.63, -41.11) |
| CIE-LCH | lch(40.87, 75.75, 327.13°) |
| OKLab | oklab(51.81% 0.1761 -0.1142) |
| OKLCH | oklch(51.81% 0.21 327) |
| XYZ | xyz(22.3846, 11.7858, 36.6859) |
| Luminance | 0.1178 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Barney
#AC1DB8
ΔE00 3.11
Barney Purple
#A00498
ΔE00 3.42
Warm Purple
#952E8F
ΔE00 4.01
Medium Purple
#9E43A2
ΔE00 4.60
Purply
#983FB2
ΔE00 4.62
Ugly Purple
#A442A0
ΔE00 4.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A226A5 #29A526
analogous
#6326A5 #A226A5 #A52668
triadic
#A226A5 #A5A226 #26A5A2
tetradic
#A226A5 #A56326 #29A526 #2668A5
square
#A226A5 #A56326 #29A526 #2668A5
split-complementary
#A226A5 #68A526 #26A563
monochromatic
#400F42 #711B73 #A226A5 #CD37D1 #DA69DC
Accessibility & contrast
On white
6.26
#A226A5 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.36
#A226A5 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A226A5
6.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A226A5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A226A5 | 1.00 | 6.26 | 3.36 | 6.26 |
| #FFFFFF | 6.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.36 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0056A8
Deuteranopia (green-blind)
#4766A2
Tritanopia (blue-blind)
#A73C65
Achromatopsia (no color)
#606060
Design tokens & code
CSS
--color: #a226a5; /* rgb */ color: rgb(162, 38, 165); /* oklch */ color: oklch(51.8% 0.210 327.0);
Tailwind
colors: {
custom: {
50: '#c16fc0',
500: '#a226a5',
950: '#000000',
},
}SCSS
$custom: #a226a5; $custom-light: #c16fc0; $custom-dark: #000000;
JSON
{
"hex": "#a226a5",
"rgb": {
"r": 162,
"g": 38,
"b": 165
},
"hsl": {
"h": 298.583,
"s": 62.562,
"l": 39.804
},
"oklch": {
"l": 0.51809,
"c": 0.2099,
"h": 327
},
"luminance": 0.11784
}Semantic roles & 50–950 ramp
primary
#A226A5
secondary
#67C364
accent
#E64246
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130812
muted
#827B81