#BA7AEF#BA7AEF
#BA7AEF is a light, vivid violet. Relative luminance 0.306; OKLCH L 69.3% C 0.175 H 307.7°. Best body text is #000000 at 7.12:1 contrast (WCAG AA passes).
Color values
| HEX | #BA7AEF |
|---|---|
| RGB | rgb(186, 122, 239) |
| HSL | hsl(273, 79%, 71%) |
| HSV | hsv(273, 49%, 94%) |
| CMYK | cmyk(22.2%, 49%, 0%, 6.3%) |
| CIE-LAB | lab(62.16, 46.30, -49.61) |
| CIE-LCH | lch(62.16, 67.86, 313.02°) |
| OKLab | oklab(69.3% 0.1073 -0.1388) |
| OKLCH | oklch(69.3% 0.175 307.7) |
| XYZ | xyz(42.7861, 30.5907, 85.2952) |
| Luminance | 0.3059 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 1.38
Easter Purple
#C071FE
ΔE00 2.99
Light Urple
#B36FF6
ΔE00 3.37
Liliac
#C48EFD
ΔE00 5.21
Bright Lavender
#C760FF
ΔE00 5.81
Bright Lilac
#C95EFB
ΔE00 6.07
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA7AEF #AFEF7A
analogous
#7F7AEF #BA7AEF #EF7AE9
triadic
#BA7AEF #EFBA7A #7AEFBA
tetradic
#BA7AEF #EF7F7A #AFEF7A #7AE9EF
square
#BA7AEF #EF7F7A #AFEF7A #7AE9EF
split-complementary
#BA7AEF #E9EF7A #7AEF7F
monochromatic
#801AD5 #9E43E8 #BA7AEF #D6B1F6 #F1E4FC
Accessibility & contrast
On white
2.95
#BA7AEF on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.12
#BA7AEF on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BA7AEF
7.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA7AEF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA7AEF | 1.00 | 2.95 | 7.12 | 7.12 |
| #FFFFFF | 2.95 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.12 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.12 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5A94F3
Deuteranopia (green-blind)
#6C97EC
Tritanopia (blue-blind)
#B28EA9
Achromatopsia (no color)
#969696
Design tokens & code
CSS
--color: #ba7aef; /* rgb */ color: rgb(186, 122, 239); /* oklch */ color: oklch(69.3% 0.175 307.7);
Tailwind
colors: {
custom: {
50: '#d1a2f5',
500: '#ba7aef',
950: '#000000',
},
}SCSS
$custom: #ba7aef; $custom-light: #d1a2f5; $custom-dark: #000000;
JSON
{
"hex": "#ba7aef",
"rgb": {
"r": 186,
"g": 122,
"b": 239
},
"hsl": {
"h": 272.821,
"s": 78.523,
"l": 70.784
},
"oklch": {
"l": 0.69296,
"c": 0.17545,
"h": 307.7
},
"luminance": 0.3059
}Semantic roles & 50–950 ramp
primary
#BA7AEF
secondary
#E1F2D3
accent
#DB0B69
background
#FDFAFF
surface
#FAF4FE
border
#D3CED6
text
#140F17
muted
#837F85