#BA42AA#BA42AA
#BA42AA is a mid, vivid purple. Relative luminance 0.172; OKLCH L 58.2% C 0.194 H 333.5°. Best body text is #FFFFFF at 4.72:1 contrast (WCAG AA passes).
Color values
| HEX | #BA42AA |
|---|---|
| RGB | rgb(186, 66, 170) |
| HSL | hsl(308, 48%, 49%) |
| HSV | hsv(308, 65%, 73%) |
| CMYK | cmyk(0%, 64.5%, 8.6%, 27.1%) |
| CIE-LAB | lab(48.56, 60.07, -31.69) |
| CIE-LCH | lch(48.56, 67.92, 332.19°) |
| OKLab | oklab(58.19% 0.1734 -0.0866) |
| OKLCH | oklch(58.19% 0.194 333.5) |
| XYZ | xyz(29.4537, 17.2401, 39.7988) |
| Luminance | 0.1724 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 3.12
Ugly Purple
#A442A0
ΔE00 4.44
Pinky Purple
#C94CBE
ΔE00 4.92
Medium Purple
#9E43A2
ΔE00 5.59
Barney
#AC1DB8
ΔE00 7.76
Purply
#983FB2
ΔE00 8.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA42AA #42BA52
analogous
#8E42BA #BA42AA #BA426E
triadic
#BA42AA #AABA42 #42AABA
tetradic
#BA42AA #BA8E42 #42BA52 #426EBA
square
#BA42AA #BA8E42 #42BA52 #426EBA
split-complementary
#BA42AA #6EBA42 #42BA8E
monochromatic
#602257 #8D3281 #BA42AA #CB6EBF #DB9BD3
Accessibility & contrast
On white
4.72
#BA42AA on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.45
#BA42AA on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #BA42AA
4.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA42AA | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##BA42AA | 1.00 | 4.72 | 4.45 | 4.72 |
| #FFFFFF | 4.72 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.72 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3F68AD
Deuteranopia (green-blind)
#677AA7
Tritanopia (blue-blind)
#C24C70
Achromatopsia (no color)
#737373
Design tokens & code
CSS
--color: #ba42aa; /* rgb */ color: rgb(186, 66, 170); /* oklch */ color: oklch(58.2% 0.194 333.5);
Tailwind
colors: {
custom: {
50: '#d27fc3',
500: '#ba42aa',
950: '#000000',
},
}SCSS
$custom: #ba42aa; $custom-light: #d27fc3; $custom-dark: #000000;
JSON
{
"hex": "#ba42aa",
"rgb": {
"r": 186,
"g": 66,
"b": 170
},
"hsl": {
"h": 308,
"s": 47.619,
"l": 49.412
},
"oklch": {
"l": 0.58186,
"c": 0.19383,
"h": 333.5
},
"luminance": 0.17238
}Semantic roles & 50–950 ramp
primary
#BA42AA
secondary
#90C898
accent
#D76351
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B12
muted
#837C81