#BA7AFE#BA7AFE
#BA7AFE is a light, vivid violet. Relative luminance 0.315; OKLCH L 70.1% C 0.193 H 304.3°. Best body text is #000000 at 7.30:1 contrast (WCAG AA passes).
Color values
| HEX | #BA7AFE |
|---|---|
| RGB | rgb(186, 122, 254) |
| HSL | hsl(269, 99%, 74%) |
| HSV | hsv(269, 52%, 100%) |
| CMYK | cmyk(26.8%, 52%, 0%, 0.4%) |
| CIE-LAB | lab(62.94, 49.72, -56.64) |
| CIE-LCH | lch(62.94, 75.36, 311.28°) |
| OKLab | oklab(70.13% 0.1086 -0.1593) |
| OKLCH | oklch(70.13% 0.193 304.3) |
| XYZ | xyz(45.0947, 31.5141, 97.4539) |
| Luminance | 0.3151 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 1.89
Easter Purple
#C071FE
ΔE00 2.24
Light Urple
#B36FF6
ΔE00 3.02
Liliac
#C48EFD
ΔE00 5.17
Bright Lavender
#C760FF
ΔE00 5.55
Bright Lilac
#C95EFB
ΔE00 6.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA7AFE #BEFE7A
analogous
#7A7CFE #BA7AFE #FC7AFE
triadic
#BA7AFE #FEBA7A #7AFEBA
tetradic
#BA7AFE #FE7A7C #BEFE7A #7AFEFC
square
#BA7AFE #FE7A7C #BEFE7A #7AFEFC
split-complementary
#BA7AFE #FEFC7A #7CFE7A
monochromatic
#7B02FC #9A3DFE #BA7AFE #DAB7FE #EFE1FF
Accessibility & contrast
On white
2.88
#BA7AFE on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.30
#BA7AFE on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BA7AFE
7.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA7AFE | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA7AFE | 1.00 | 2.88 | 7.30 | 7.30 |
| #FFFFFF | 2.88 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.30 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.30 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4E97FF
Deuteranopia (green-blind)
#6298FB
Tritanopia (blue-blind)
#AE92B1
Achromatopsia (no color)
#989898
Design tokens & code
CSS
--color: #ba7afe; /* rgb */ color: rgb(186, 122, 254); /* oklch */ color: oklch(70.1% 0.193 304.3);
Tailwind
colors: {
custom: {
50: '#d2a2ff',
500: '#ba7afe',
950: '#000000',
},
}SCSS
$custom: #ba7afe; $custom-light: #d2a2ff; $custom-dark: #000000;
JSON
{
"hex": "#ba7afe",
"rgb": {
"r": 186,
"g": 122,
"b": 254
},
"hsl": {
"h": 269.091,
"s": 98.507,
"l": 73.725
},
"oklch": {
"l": 0.70126,
"c": 0.19283,
"h": 304.3
},
"luminance": 0.31514
}Semantic roles & 50–950 ramp
primary
#BA7AFE
secondary
#E6F7D4
accent
#E60076
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F18
muted
#837F86