#BA7CFA#BA7CFA
#BA7CFA is a light, vivid violet. Relative luminance 0.318; OKLCH L 70.2% C 0.185 H 304.8°. Best body text is #000000 at 7.35:1 contrast (WCAG AA passes).
Color values
| HEX | #BA7CFA |
|---|---|
| RGB | rgb(186, 124, 250) |
| HSL | hsl(270, 93%, 73%) |
| HSV | hsv(270, 50%, 98%) |
| CMYK | cmyk(25.6%, 50.4%, 0%, 2%) |
| CIE-LAB | lab(63.14, 47.73, -54.12) |
| CIE-LCH | lch(63.14, 72.16, 311.41°) |
| OKLab | oklab(70.21% 0.1057 -0.152) |
| OKLCH | oklch(70.21% 0.185 304.8) |
| XYZ | xyz(44.7090, 31.7568, 94.1983) |
| Luminance | 0.3176 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 1.72
Easter Purple
#C071FE
ΔE00 2.66
Light Urple
#B36FF6
ΔE00 3.37
Liliac
#C48EFD
ΔE00 4.64
Bright Lavender
#C760FF
ΔE00 5.97
Bright Lilac
#C95EFB
ΔE00 6.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA7CFA #BCFA7C
analogous
#7C7DFA #BA7CFA #F97CFA
triadic
#BA7CFA #FABA7C #7CFABA
tetradic
#BA7CFA #FA7C7D #BCFA7C #7CFAF9
square
#BA7CFA #FA7C7D #BCFA7C #7CFAF9
split-complementary
#BA7CFA #FAF97C #7DFA7C
monochromatic
#7C09F2 #9B41F8 #BA7CFA #D9B7FC #EFE2FE
Accessibility & contrast
On white
2.86
#BA7CFA on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.35
#BA7CFA on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BA7CFA
7.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA7CFA | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA7CFA | 1.00 | 2.86 | 7.35 | 7.35 |
| #FFFFFF | 2.86 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.35 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.35 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5597FE
Deuteranopia (green-blind)
#6799F7
Tritanopia (blue-blind)
#AF93B0
Achromatopsia (no color)
#999999
Design tokens & code
CSS
--color: #ba7cfa; /* rgb */ color: rgb(186, 124, 250); /* oklch */ color: oklch(70.2% 0.185 304.8);
Tailwind
colors: {
custom: {
50: '#d1a3fc',
500: '#ba7cfa',
950: '#000000',
},
}SCSS
$custom: #ba7cfa; $custom-light: #d1a3fc; $custom-dark: #000000;
JSON
{
"hex": "#ba7cfa",
"rgb": {
"r": 186,
"g": 124,
"b": 250
},
"hsl": {
"h": 269.524,
"s": 92.647,
"l": 73.333
},
"oklch": {
"l": 0.70208,
"c": 0.18514,
"h": 304.8
},
"luminance": 0.31757
}Semantic roles & 50–950 ramp
primary
#BA7CFA
secondary
#E6F6D5
accent
#E60075
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85