#BA7EE8#BA7EE8
#BA7EE8 is a light, vivid violet. Relative luminance 0.312; OKLCH L 69.6% C 0.161 H 308.9°. Best body text is #000000 at 7.24:1 contrast (WCAG AA passes).
Color values
| HEX | #BA7EE8 |
|---|---|
| RGB | rgb(186, 126, 232) |
| HSL | hsl(274, 70%, 70%) |
| HSV | hsv(274, 46%, 91%) |
| CMYK | cmyk(19.8%, 45.7%, 0%, 9%) |
| CIE-LAB | lab(62.67, 42.59, -44.93) |
| CIE-LCH | lch(62.67, 61.91, 313.47°) |
| OKLab | oklab(69.56% 0.101 -0.1252) |
| OKLCH | oklch(69.56% 0.161 308.9) |
| XYZ | xyz(42.2733, 31.1876, 80.1211) |
| Luminance | 0.3119 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 2.83
Easter Purple
#C071FE
ΔE00 4.54
Liliac
#C48EFD
ΔE00 4.80
Light Urple
#B36FF6
ΔE00 4.86
Wisteria
#A87DC2
ΔE00 6.96
Pale Purple
#B790D4
ΔE00 7.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA7EE8 #ACE87E
analogous
#857EE8 #BA7EE8 #E87EE1
triadic
#BA7EE8 #E8BA7E #7EE8BA
tetradic
#BA7EE8 #E8857E #ACE87E #7EE1E8
square
#BA7EE8 #E8857E #ACE87E #7EE1E8
split-complementary
#BA7EE8 #E1E87E #7EE885
monochromatic
#8124C8 #9E4ADF #BA7EE8 #D6B2F1 #F1E5FA
Accessibility & contrast
On white
2.90
#BA7EE8 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.24
#BA7EE8 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BA7EE8
7.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA7EE8 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA7EE8 | 1.00 | 2.90 | 7.24 | 7.24 |
| #FFFFFF | 2.90 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.24 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.24 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6595EC
Deuteranopia (green-blind)
#7498E5
Tritanopia (blue-blind)
#B48FA8
Achromatopsia (no color)
#989898
Design tokens & code
CSS
--color: #ba7ee8; /* rgb */ color: rgb(186, 126, 232); /* oklch */ color: oklch(69.6% 0.161 308.9);
Tailwind
colors: {
custom: {
50: '#d1a5f0',
500: '#ba7ee8',
950: '#000000',
},
}SCSS
$custom: #ba7ee8; $custom-light: #d1a5f0; $custom-dark: #000000;
JSON
{
"hex": "#ba7ee8",
"rgb": {
"r": 186,
"g": 126,
"b": 232
},
"hsl": {
"h": 273.962,
"s": 69.737,
"l": 70.196
},
"oklch": {
"l": 0.69561,
"c": 0.16091,
"h": 308.9
},
"luminance": 0.31187
}Semantic roles & 50–950 ramp
primary
#BA7EE8
secondary
#DFF0D2
accent
#D21466
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F16
muted
#837F84