#BA42A2#BA42A2
#BA42A2 is a mid, vivid pink. Relative luminance 0.169; OKLCH L 57.8% C 0.188 H 336.5°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).
Color values
| HEX | #BA42A2 |
|---|---|
| RGB | rgb(186, 66, 162) |
| HSL | hsl(312, 48%, 49%) |
| HSV | hsv(312, 65%, 73%) |
| CMYK | cmyk(0%, 64.5%, 12.9%, 27.1%) |
| CIE-LAB | lab(48.19, 58.83, -27.53) |
| CIE-LCH | lch(48.19, 64.95, 334.92°) |
| OKLab | oklab(57.8% 0.1723 -0.0748) |
| OKLCH | oklch(57.8% 0.188 336.5) |
| XYZ | xyz(28.7199, 16.9466, 35.9338) |
| Luminance | 0.1694 (WCAG relative) |
| Temperature | neutral |
| Family | pink |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 4.27
Ugly Purple
#A442A0
ΔE00 4.65
Pinky Purple
#C94CBE
ΔE00 5.87
Medium Purple
#9E43A2
ΔE00 6.00
Mediumvioletred
#C71585
ΔE00 7.35
Purpleish
#98568D
ΔE00 7.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA42A2 #42BA5A
analogous
#9642BA #BA42A2 #BA4266
triadic
#BA42A2 #A2BA42 #42A2BA
tetradic
#BA42A2 #BA9642 #42BA5A #4266BA
square
#BA42A2 #BA9642 #42BA5A #4266BA
split-complementary
#BA42A2 #66BA42 #42BA96
monochromatic
#602253 #8D327B #BA42A2 #CB6EB9 #DB9BCF
Accessibility & contrast
On white
4.78
#BA42A2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.39
#BA42A2 on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #BA42A2
4.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA42A2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##BA42A2 | 1.00 | 4.78 | 4.39 | 4.78 |
| #FFFFFF | 4.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4467A5
Deuteranopia (green-blind)
#6A799F
Tritanopia (blue-blind)
#C3486C
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #ba42a2; /* rgb */ color: rgb(186, 66, 162); /* oklch */ color: oklch(57.8% 0.188 336.5);
Tailwind
colors: {
custom: {
50: '#d27fbe',
500: '#ba42a2',
950: '#000000',
},
}SCSS
$custom: #ba42a2; $custom-light: #d27fbe; $custom-dark: #000000;
JSON
{
"hex": "#ba42a2",
"rgb": {
"r": 186,
"g": 66,
"b": 162
},
"hsl": {
"h": 312,
"s": 47.619,
"l": 49.412
},
"oklch": {
"l": 0.57797,
"c": 0.18785,
"h": 336.5
},
"luminance": 0.16944
}Semantic roles & 50–950 ramp
primary
#BA42A2
secondary
#90C89B
accent
#D76C51
background
#FDF8FB
surface
#FAEFF6
border
#D3CAD0
text
#140B12
muted
#837C81