#BA7BFC#BA7BFC
#BA7BFC is a light, vivid violet. Relative luminance 0.316; OKLCH L 70.2% C 0.189 H 304.5°. Best body text is #000000 at 7.33:1 contrast (WCAG AA passes).
Color values
| HEX | #BA7BFC |
|---|---|
| RGB | rgb(186, 123, 252) |
| HSL | hsl(269, 96%, 74%) |
| HSV | hsv(269, 51%, 99%) |
| CMYK | cmyk(26.2%, 51.2%, 0%, 1.2%) |
| CIE-LAB | lab(63.04, 48.72, -55.38) |
| CIE-LCH | lch(63.04, 73.76, 311.34°) |
| OKLab | oklab(70.17% 0.1072 -0.1557) |
| OKLCH | oklch(70.17% 0.189 304.5) |
| XYZ | xyz(44.8996, 31.6335, 95.8171) |
| Luminance | 0.3163 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 1.77
Easter Purple
#C071FE
ΔE00 2.42
Light Urple
#B36FF6
ΔE00 3.17
Liliac
#C48EFD
ΔE00 4.90
Bright Lavender
#C760FF
ΔE00 5.75
Bright Lilac
#C95EFB
ΔE00 6.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA7BFC #BDFC7B
analogous
#7B7CFC #BA7BFC #FA7BFC
triadic
#BA7BFC #FCBA7B #7BFCBA
tetradic
#BA7BFC #FC7B7C #BDFC7B #7BFCFA
square
#BA7BFC #FC7B7C #BDFC7B #7BFCFA
split-complementary
#BA7BFC #FCFA7B #7CFC7B
monochromatic
#7B06F7 #9B3FFB #BA7BFC #D9B7FD #EFE1FE
Accessibility & contrast
On white
2.87
#BA7BFC on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.33
#BA7BFC on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BA7BFC
7.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA7BFC | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA7BFC | 1.00 | 2.87 | 7.33 | 7.33 |
| #FFFFFF | 2.87 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.33 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.33 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5297FF
Deuteranopia (green-blind)
#6599F9
Tritanopia (blue-blind)
#AF92B0
Achromatopsia (no color)
#999999
Design tokens & code
CSS
--color: #ba7bfc; /* rgb */ color: rgb(186, 123, 252); /* oklch */ color: oklch(70.2% 0.189 304.5);
Tailwind
colors: {
custom: {
50: '#d2a3fe',
500: '#ba7bfc',
950: '#000000',
},
}SCSS
$custom: #ba7bfc; $custom-light: #d2a3fe; $custom-dark: #000000;
JSON
{
"hex": "#ba7bfc",
"rgb": {
"r": 186,
"g": 123,
"b": 252
},
"hsl": {
"h": 269.302,
"s": 95.556,
"l": 73.529
},
"oklch": {
"l": 0.70166,
"c": 0.18899,
"h": 304.5
},
"luminance": 0.31633
}Semantic roles & 50–950 ramp
primary
#BA7BFC
secondary
#E6F7D4
accent
#E60075
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F18
muted
#837F86