#BA43E2#BA43E2
#BA43E2 is a mid, highly saturated purple. Relative luminance 0.199; OKLCH L 61.5% C 0.239 H 316.2°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).
Color values
| HEX | #BA43E2 |
|---|---|
| RGB | rgb(186, 67, 226) |
| HSL | hsl(285, 73%, 57%) |
| HSV | hsv(285, 70%, 89%) |
| CMYK | cmyk(17.7%, 70.4%, 0%, 11.4%) |
| CIE-LAB | lab(51.78, 69.57, -58.90) |
| CIE-LCH | lch(51.78, 91.15, 319.75°) |
| OKLab | oklab(61.49% 0.1728 -0.1657) |
| OKLCH | oklch(61.49% 0.239 316.2) |
| XYZ | xyz(35.9822, 19.9458, 73.8913) |
| Luminance | 0.1994 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Mediumorchid
#BA55D3
ΔE00 3.88
Lightish Purple
#A552E6
ΔE00 4.10
Hot Purple
#CB00F5
ΔE00 4.26
Purple Pink
#D725DE
ΔE00 4.90
Neon Purple
#BC13FE
ΔE00 5.05
Bright Purple
#BE03FD
ΔE00 5.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA43E2 #6BE243
analogous
#6B43E2 #BA43E2 #E243BA
triadic
#BA43E2 #E2BA43 #43E2BA
tetradic
#BA43E2 #E26B43 #6BE243 #43BAE2
square
#BA43E2 #E26B43 #6BE243 #43BAE2
split-complementary
#BA43E2 #BAE243 #43E26B
monochromatic
#741794 #9E1FC9 #BA43E2 #CD78EA #E1ADF2
Accessibility & contrast
On white
4.21
#BA43E2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.99
#BA43E2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #BA43E2
4.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA43E2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA43E2 | 1.00 | 4.21 | 4.99 | 4.99 |
| #FFFFFF | 4.21 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.99 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.99 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0074E7
Deuteranopia (green-blind)
#427FDE
Tritanopia (blue-blind)
#B7638E
Achromatopsia (no color)
#7B7B7B
Design tokens & code
CSS
--color: #ba43e2; /* rgb */ color: rgb(186, 67, 226); /* oklch */ color: oklch(61.5% 0.239 316.2);
Tailwind
colors: {
custom: {
50: '#d381ec',
500: '#ba43e2',
950: '#000000',
},
}SCSS
$custom: #ba43e2; $custom-light: #d381ec; $custom-dark: #000000;
JSON
{
"hex": "#ba43e2",
"rgb": {
"r": 186,
"g": 67,
"b": 226
},
"hsl": {
"h": 284.906,
"s": 73.272,
"l": 57.451
},
"oklch": {
"l": 0.61492,
"c": 0.2394,
"h": 316.2
},
"luminance": 0.19944
}Semantic roles & 50–950 ramp
primary
#BA43E2
secondary
#B0E1A0
accent
#F03866
background
#FDF8FE
surface
#FBEFFD
border
#D4CAD5
text
#150B16
muted
#837C84