#A226C7#A226C7
#A226C7 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 54.0% C 0.237 H 316.6°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).
Color values
| HEX | #A226C7 |
|---|---|
| RGB | rgb(162, 38, 199) |
| HSL | hsl(286, 68%, 46%) |
| HSV | hsv(286, 81%, 78%) |
| CMYK | cmyk(18.6%, 80.9%, 0%, 22%) |
| CIE-LAB | lab(43.05, 69.63, -57.66) |
| CIE-LCH | lch(43.05, 90.41, 320.37°) |
| OKLab | oklab(54.04% 0.1723 -0.1626) |
| OKLCH | oklch(54.04% 0.237 316.6) |
| XYZ | xyz(25.9006, 13.1922, 55.2038) |
| Luminance | 0.1319 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Darkorchid
#9932CC
ΔE00 2.12
Vibrant Purple
#AD03DE
ΔE00 3.25
Barney
#AC1DB8
ΔE00 3.30
Purply
#983FB2
ΔE00 4.33
Darkviolet
#9400D3
ΔE00 4.58
Violet (survey)
#9A0EEA
ΔE00 5.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A226C7 #4BC726
analogous
#5226C7 #A226C7 #C7269C
triadic
#A226C7 #C7A226 #26C7A2
tetradic
#A226C7 #C75226 #4BC726 #269CC7
square
#A226C7 #C75226 #4BC726 #269CC7
split-complementary
#A226C7 #9CC726 #26C752
monochromatic
#4E1260 #781C94 #A226C7 #BC4DDD #CF81E7
Accessibility & contrast
On white
5.77
#A226C7 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.64
#A226C7 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A226C7
5.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A226C7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A226C7 | 1.00 | 5.77 | 3.64 | 5.77 |
| #FFFFFF | 5.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#005FCB
Deuteranopia (green-blind)
#2669C4
Tritanopia (blue-blind)
#A04D78
Achromatopsia (no color)
#666666
Design tokens & code
CSS
--color: #a226c7; /* rgb */ color: rgb(162, 38, 199); /* oklch */ color: oklch(54.0% 0.237 316.6);
Tailwind
colors: {
custom: {
50: '#c271d9',
500: '#a226c7',
950: '#000000',
},
}SCSS
$custom: #a226c7; $custom-light: #c271d9; $custom-dark: #000000;
JSON
{
"hex": "#a226c7",
"rgb": {
"r": 162,
"g": 38,
"b": 199
},
"hsl": {
"h": 286.211,
"s": 67.932,
"l": 46.471
},
"oklch": {
"l": 0.54042,
"c": 0.23692,
"h": 316.6
},
"luminance": 0.13191
}Semantic roles & 50–950 ramp
primary
#A226C7
secondary
#8DCF79
accent
#EB3D65
background
#FCF7FD
surface
#F8EDFB
border
#D1C8D4
text
#130915
muted
#827B83