#BA7EFC#BA7EFC
#BA7EFC is a light, vivid violet. Relative luminance 0.324; OKLCH L 70.6% C 0.184 H 304.1°. Best body text is #000000 at 7.48:1 contrast (WCAG AA passes).
Color values
| HEX | #BA7EFC |
|---|---|
| RGB | rgb(186, 126, 252) |
| HSL | hsl(269, 95%, 74%) |
| HSV | hsv(269, 50%, 99%) |
| CMYK | cmyk(26.2%, 50%, 0%, 1.2%) |
| CIE-LAB | lab(63.66, 47.12, -54.39) |
| CIE-LCH | lch(63.66, 71.96, 310.90°) |
| OKLab | oklab(70.63% 0.1033 -0.1528) |
| OKLCH | oklch(70.63% 0.184 304.1) |
| XYZ | xyz(45.2774, 32.3892, 95.9430) |
| Luminance | 0.3239 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 2.22
Easter Purple
#C071FE
ΔE00 3.09
Light Urple
#B36FF6
ΔE00 3.83
Liliac
#C48EFD
ΔE00 4.24
Bright Lavender
#C760FF
ΔE00 6.43
Bright Lilac
#C95EFB
ΔE00 6.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA7EFC #C0FC7E
analogous
#7E81FC #BA7EFC #F97EFC
triadic
#BA7EFC #FCBA7E #7EFCBA
tetradic
#BA7EFC #FC7E81 #C0FC7E #7EFCF9
square
#BA7EFC #FC7E81 #C0FC7E #7EFCF9
split-complementary
#BA7EFC #FCF97E #81FC7E
monochromatic
#7A06F9 #9A42FB #BA7EFC #DABAFD #EFE1FE
Accessibility & contrast
On white
2.81
#BA7EFC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.48
#BA7EFC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BA7EFC
7.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA7EFC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA7EFC | 1.00 | 2.81 | 7.48 | 7.48 |
| #FFFFFF | 2.81 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.48 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.48 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5799FF
Deuteranopia (green-blind)
#689AF9
Tritanopia (blue-blind)
#AF95B1
Achromatopsia (no color)
#9A9A9A
Design tokens & code
CSS
--color: #ba7efc; /* rgb */ color: rgb(186, 126, 252); /* oklch */ color: oklch(70.6% 0.184 304.1);
Tailwind
colors: {
custom: {
50: '#d1a5fe',
500: '#ba7efc',
950: '#000000',
},
}SCSS
$custom: #ba7efc; $custom-light: #d1a5fe; $custom-dark: #000000;
JSON
{
"hex": "#ba7efc",
"rgb": {
"r": 186,
"g": 126,
"b": 252
},
"hsl": {
"h": 268.571,
"s": 95.455,
"l": 74.118
},
"oklch": {
"l": 0.70629,
"c": 0.18442,
"h": 304.1
},
"luminance": 0.32389
}Semantic roles & 50–950 ramp
primary
#BA7EFC
secondary
#E6F7D4
accent
#E60078
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F18
muted
#837F86