#AA42BA#AA42BA
#AA42BA is a mid, vivid purple. Relative luminance 0.160; OKLCH L 56.8% C 0.198 H 322.1°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).
Color values
| HEX | #AA42BA |
|---|---|
| RGB | rgb(170, 66, 186) |
| HSL | hsl(292, 48%, 49%) |
| HSV | hsv(292, 65%, 73%) |
| CMYK | cmyk(8.6%, 64.5%, 0%, 27.1%) |
| CIE-LAB | lab(46.96, 58.87, -43.76) |
| CIE-LCH | lch(46.96, 73.35, 323.38°) |
| OKLab | oklab(56.81% 0.1566 -0.1219) |
| OKLCH | oklch(56.81% 0.198 322.1) |
| XYZ | xyz(27.3878, 15.9891, 48.0885) |
| Luminance | 0.1599 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purply
#983FB2
ΔE00 3.82
Medium Purple
#9E43A2
ΔE00 4.32
Ugly Purple
#A442A0
ΔE00 4.63
Barney
#AC1DB8
ΔE00 4.87
Purpley Pink
#C83CB9
ΔE00 5.92
Darkorchid
#9932CC
ΔE00 6.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AA42BA #52BA42
analogous
#6E42BA #AA42BA #BA428E
triadic
#AA42BA #BAAA42 #42BAAA
tetradic
#AA42BA #BA6E42 #52BA42 #428EBA
square
#AA42BA #BA6E42 #52BA42 #428EBA
split-complementary
#AA42BA #8EBA42 #42BA6E
monochromatic
#572260 #81328D #AA42BA #BF6ECB #D39BDB
Accessibility & contrast
On white
5.00
#AA42BA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.20
#AA42BA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #AA42BA
5.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AA42BA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##AA42BA | 1.00 | 5.00 | 4.20 | 5.00 |
| #FFFFFF | 5.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.20 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2468BE
Deuteranopia (green-blind)
#5173B7
Tritanopia (blue-blind)
#AC5578
Achromatopsia (no color)
#6F6F6F
Design tokens & code
CSS
--color: #aa42ba; /* rgb */ color: rgb(170, 66, 186); /* oklch */ color: oklch(56.8% 0.198 322.1);
Tailwind
colors: {
custom: {
50: '#c67ecf',
500: '#aa42ba',
950: '#000000',
},
}SCSS
$custom: #aa42ba; $custom-light: #c67ecf; $custom-dark: #000000;
JSON
{
"hex": "#aa42ba",
"rgb": {
"r": 170,
"g": 66,
"b": 186
},
"hsl": {
"h": 292,
"s": 47.619,
"l": 49.412
},
"oklch": {
"l": 0.56809,
"c": 0.19844,
"h": 322.1
},
"luminance": 0.15988
}Semantic roles & 50–950 ramp
primary
#AA42BA
secondary
#98C890
accent
#D75163
background
#FCF8FC
surface
#F8EFF9
border
#D1CAD2
text
#130A14
muted
#827C82