#BA3EC8#BA3EC8
#BA3EC8 is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.4% C 0.223 H 323.5°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).
Color values
| HEX | #BA3EC8 |
|---|---|
| RGB | rgb(186, 62, 200) |
| HSL | hsl(294, 56%, 51%) |
| HSV | hsv(294, 69%, 78%) |
| CMYK | cmyk(7%, 69%, 0%, 21.6%) |
| CIE-LAB | lab(49.56, 66.66, -47.59) |
| CIE-LCH | lch(49.56, 81.91, 324.48°) |
| OKLab | oklab(59.41% 0.1792 -0.1326) |
| OKLCH | oklch(59.41% 0.223 323.5) |
| XYZ | xyz(32.3967, 18.0564, 56.4112) |
| Luminance | 0.1805 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 4.25
Mediumorchid
#BA55D3
ΔE00 4.68
Purple Pink
#D725DE
ΔE00 5.02
Pinky Purple
#C94CBE
ΔE00 5.41
Hot Purple
#CB00F5
ΔE00 6.41
Barney
#AC1DB8
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA3EC8 #4CC83E
analogous
#753EC8 #BA3EC8 #C83E91
triadic
#BA3EC8 #C8BA3E #3EC8BA
tetradic
#BA3EC8 #C8753E #4CC83E #3E91C8
square
#BA3EC8 #C8753E #4CC83E #3E91C8
split-complementary
#BA3EC8 #91C83E #3EC875
monochromatic
#651F6D #912D9C #BA3EC8 #CB6ED6 #DC9DE3
Accessibility & contrast
On white
4.55
#BA3EC8 on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.61
#BA3EC8 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #BA3EC8
4.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA3EC8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA3EC8 | 1.00 | 4.55 | 4.61 | 4.61 |
| #FFFFFF | 4.55 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.61 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.61 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#146CCC
Deuteranopia (green-blind)
#557BC5
Tritanopia (blue-blind)
#BD557F
Achromatopsia (no color)
#767676
Design tokens & code
CSS
--color: #ba3ec8; /* rgb */ color: rgb(186, 62, 200); /* oklch */ color: oklch(59.4% 0.223 323.5);
Tailwind
colors: {
custom: {
50: '#d27ed9',
500: '#ba3ec8',
950: '#000000',
},
}SCSS
$custom: #ba3ec8; $custom-light: #d27ed9; $custom-dark: #000000;
JSON
{
"hex": "#ba3ec8",
"rgb": {
"r": 186,
"g": 62,
"b": 200
},
"hsl": {
"h": 293.913,
"s": 55.645,
"l": 51.373
},
"oklch": {
"l": 0.59415,
"c": 0.22294,
"h": 323.5
},
"luminance": 0.18054
}Semantic roles & 50–950 ramp
primary
#BA3EC8
secondary
#99CF92
accent
#DF4958
background
#FDF8FD
surface
#FAEFFA
border
#D3CAD3
text
#150B15
muted
#837C83