#A227A9#A227A9
#A227A9 is a mid, highly saturated purple. Relative luminance 0.120; OKLCH L 52.1% C 0.212 H 325.7°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).
Color values
| HEX | #A227A9 |
|---|---|
| RGB | rgb(162, 39, 169) |
| HSL | hsl(297, 63%, 41%) |
| HSV | hsv(297, 77%, 66%) |
| CMYK | cmyk(4.1%, 76.9%, 0%, 33.7%) |
| CIE-LAB | lab(41.21, 64.00, -42.96) |
| CIE-LCH | lch(41.21, 77.08, 326.13°) |
| OKLab | oklab(52.13% 0.1751 -0.1196) |
| OKLCH | oklch(52.13% 0.212 325.7) |
| XYZ | xyz(22.7868, 11.9985, 38.6442) |
| Luminance | 0.1200 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Barney
#AC1DB8
ΔE00 2.55
Barney Purple
#A00498
ΔE00 3.96
Purply
#983FB2
ΔE00 4.12
Warm Purple
#952E8F
ΔE00 4.61
Medium Purple
#9E43A2
ΔE00 4.63
Ugly Purple
#A442A0
ΔE00 5.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A227A9 #2EA927
analogous
#6127A9 #A227A9 #A9276F
triadic
#A227A9 #A9A227 #27A9A2
tetradic
#A227A9 #A96127 #2EA927 #276FA9
square
#A227A9 #A96127 #2EA927 #276FA9
split-complementary
#A227A9 #6FA927 #27A961
monochromatic
#431046 #721C77 #A227A9 #CA3BD2 #D76DDD
Accessibility & contrast
On white
6.18
#A227A9 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
3.40
#A227A9 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #A227A9
6.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A227A9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##A227A9 | 1.00 | 6.18 | 3.40 | 6.18 |
| #FFFFFF | 6.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 3.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 6.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0058AC
Deuteranopia (green-blind)
#4566A6
Tritanopia (blue-blind)
#A63F67
Achromatopsia (no color)
#616161
Design tokens & code
CSS
--color: #a227a9; /* rgb */ color: rgb(162, 39, 169); /* oklch */ color: oklch(52.1% 0.212 325.7);
Tailwind
colors: {
custom: {
50: '#c170c3',
500: '#a227a9',
950: '#000000',
},
}SCSS
$custom: #a227a9; $custom-light: #c170c3; $custom-dark: #000000;
JSON
{
"hex": "#a227a9",
"rgb": {
"r": 162,
"g": 39,
"b": 169
},
"hsl": {
"h": 296.769,
"s": 62.5,
"l": 40.784
},
"oklch": {
"l": 0.52127,
"c": 0.21204,
"h": 325.7
},
"luminance": 0.11997
}Semantic roles & 50–950 ramp
primary
#A227A9
secondary
#6DC468
accent
#E6424B
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130812
muted
#827B81