#A271AA#A271AA
#A271AA is a mid, moderate purple. Relative luminance 0.224; OKLCH L 61.9% C 0.100 H 321.7°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).
Color values
| HEX | #A271AA |
|---|---|
| RGB | rgb(162, 113, 170) |
| HSL | hsl(292, 25%, 55%) |
| HSV | hsv(292, 34%, 67%) |
| CMYK | cmyk(4.7%, 33.5%, 0%, 33.3%) |
| CIE-LAB | lab(54.44, 29.30, -22.81) |
| CIE-LCH | lch(54.44, 37.13, 322.09°) |
| OKLab | oklab(61.89% 0.0788 -0.0622) |
| OKLCH | oklch(61.89% 0.1 321.7) |
| XYZ | xyz(28.0602, 22.3948, 40.8669) |
| Luminance | 0.2239 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Dark Lilac
#9C6DA5
ΔE00 1.77
Soft Purple
#A66FB5
ΔE00 2.75
Faded Purple
#916E99
ΔE00 4.83
Wisteria
#A87DC2
ΔE00 5.50
Deep Lilac
#966EBD
ΔE00 6.42
Heather
#A484AC
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A271AA #79AA71
analogous
#8571AA #A271AA #AA7195
triadic
#A271AA #AAA271 #71AAA2
tetradic
#A271AA #AA8571 #79AA71 #7195AA
square
#A271AA #AA8571 #79AA71 #7195AA
split-complementary
#A271AA #95AA71 #71AA85
monochromatic
#5F3C64 #83538B #A271AA #BB97C1 #D4BED8
Accessibility & contrast
On white
3.83
#A271AA on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
5.48
#A271AA on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #A271AA
5.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A271AA | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A271AA | 1.00 | 3.83 | 5.48 | 5.48 |
| #FFFFFF | 3.83 | 1.00 | 21.00 | 21.00 |
| #000000 | 5.48 | 21.00 | 1.00 | 1.00 |
| ##000000 | 5.48 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6B7FAC
Deuteranopia (green-blind)
#7784A8
Tritanopia (blue-blind)
#A47786
Achromatopsia (no color)
#828282
Design tokens & code
CSS
--color: #a271aa; /* rgb */ color: rgb(162, 113, 170); /* oklch */ color: oklch(61.9% 0.100 321.7);
Tailwind
colors: {
custom: {
50: '#be9ac3',
500: '#a271aa',
950: '#000000',
},
}SCSS
$custom: #a271aa; $custom-light: #be9ac3; $custom-dark: #000000;
JSON
{
"hex": "#a271aa",
"rgb": {
"r": 162,
"g": 113,
"b": 170
},
"hsl": {
"h": 291.579,
"s": 25.11,
"l": 55.49
},
"oklch": {
"l": 0.61894,
"c": 0.10042,
"h": 321.7
},
"luminance": 0.22394
}Semantic roles & 50–950 ramp
primary
#A271AA
secondary
#B3C7B0
accent
#C26673
background
#FBF9FC
surface
#F7F2F8
border
#D0CCD1
text
#120E12
muted
#817E81