#BA43B2#BA43B2
#BA43B2 is a mid, vivid purple. Relative luminance 0.177; OKLCH L 58.7% C 0.199 H 330.5°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).
Color values
| HEX | #BA43B2 |
|---|---|
| RGB | rgb(186, 67, 178) |
| HSL | hsl(304, 47%, 50%) |
| HSV | hsv(304, 64%, 73%) |
| CMYK | cmyk(0%, 64%, 4.3%, 27.1%) |
| CIE-LAB | lab(49.09, 60.96, -35.55) |
| CIE-LCH | lch(49.09, 70.57, 329.75°) |
| OKLab | oklab(58.7% 0.173 -0.0977) |
| OKLCH | oklch(58.7% 0.199 330.5) |
| XYZ | xyz(30.2926, 17.6700, 43.9260) |
| Luminance | 0.1767 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 2.45
Pinky Purple
#C94CBE
ΔE00 4.21
Ugly Purple
#A442A0
ΔE00 4.86
Medium Purple
#9E43A2
ΔE00 5.71
Mediumorchid
#BA55D3
ΔE00 6.70
Barney
#AC1DB8
ΔE00 7.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA43B2 #43BA4B
analogous
#8743BA #BA43B2 #BA4376
triadic
#BA43B2 #B2BA43 #43B2BA
tetradic
#BA43B2 #BA8743 #43BA4B #4376BA
square
#BA43B2 #BA8743 #43BA4B #4376BA
split-complementary
#BA43B2 #76BA43 #43BA87
monochromatic
#60235C #8D3387 #BA43B2 #CB6FC5 #DB9CD7
Accessibility & contrast
On white
4.63
#BA43B2 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.53
#BA43B2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#FFFFFF on #BA43B2
4.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA43B2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##BA43B2 | 1.00 | 4.63 | 4.53 | 4.63 |
| #FFFFFF | 4.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.53 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3A6AB5
Deuteranopia (green-blind)
#647BAF
Tritanopia (blue-blind)
#C15075
Achromatopsia (no color)
#757575
Design tokens & code
CSS
--color: #ba43b2; /* rgb */ color: rgb(186, 67, 178); /* oklch */ color: oklch(58.7% 0.199 330.5);
Tailwind
colors: {
custom: {
50: '#d280c9',
500: '#ba43b2',
950: '#000000',
},
}SCSS
$custom: #ba43b2; $custom-light: #d280c9; $custom-dark: #000000;
JSON
{
"hex": "#ba43b2",
"rgb": {
"r": 186,
"g": 67,
"b": 178
},
"hsl": {
"h": 304.034,
"s": 47.036,
"l": 49.608
},
"oklch": {
"l": 0.58699,
"c": 0.19873,
"h": 330.5
},
"luminance": 0.17668
}Semantic roles & 50–950 ramp
primary
#BA43B2
secondary
#91C895
accent
#D75A51
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140B13
muted
#837C82