#BA7BF6#BA7BF6
#BA7BF6 is a light, vivid violet. Relative luminance 0.313; OKLCH L 69.8% C 0.182 H 305.9°. Best body text is #000000 at 7.25:1 contrast (WCAG AA passes).
Color values
| HEX | #BA7BF6 |
|---|---|
| RGB | rgb(186, 123, 246) |
| HSL | hsl(271, 87%, 72%) |
| HSV | hsv(271, 50%, 96%) |
| CMYK | cmyk(24.4%, 50%, 0%, 3.5%) |
| CIE-LAB | lab(62.73, 47.35, -52.58) |
| CIE-LCH | lch(62.73, 70.76, 312.00°) |
| OKLab | oklab(69.83% 0.1067 -0.1475) |
| OKLCH | oklch(69.83% 0.182 305.9) |
| XYZ | xyz(43.9637, 31.2592, 90.8885) |
| Luminance | 0.3126 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 1.31
Easter Purple
#C071FE
ΔE00 2.59
Light Urple
#B36FF6
ΔE00 3.19
Liliac
#C48EFD
ΔE00 4.84
Bright Lavender
#C760FF
ΔE00 5.79
Bright Lilac
#C95EFB
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA7BF6 #B7F67B
analogous
#7D7BF6 #BA7BF6 #F67BF4
triadic
#BA7BF6 #F6BA7B #7BF6BA
tetradic
#BA7BF6 #F67D7B #B7F67B #7BF4F6
square
#BA7BF6 #F67D7B #B7F67B #7BF4F6
split-complementary
#BA7BF6 #F4F67B #7BF67D
monochromatic
#7E10E7 #9C42F2 #BA7BF6 #D8B4FA #F0E2FD
Accessibility & contrast
On white
2.90
#BA7BF6 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.25
#BA7BF6 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BA7BF6
7.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA7BF6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA7BF6 | 1.00 | 2.90 | 7.25 | 7.25 |
| #FFFFFF | 2.90 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.25 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.25 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#5796FA
Deuteranopia (green-blind)
#6998F3
Tritanopia (blue-blind)
#B091AD
Achromatopsia (no color)
#989898
Design tokens & code
CSS
--color: #ba7bf6; /* rgb */ color: rgb(186, 123, 246); /* oklch */ color: oklch(69.8% 0.182 305.9);
Tailwind
colors: {
custom: {
50: '#d1a3fa',
500: '#ba7bf6',
950: '#000000',
},
}SCSS
$custom: #ba7bf6; $custom-light: #d1a3fa; $custom-dark: #000000;
JSON
{
"hex": "#ba7bf6",
"rgb": {
"r": 186,
"g": 123,
"b": 246
},
"hsl": {
"h": 270.732,
"s": 87.234,
"l": 72.353
},
"oklch": {
"l": 0.69832,
"c": 0.18202,
"h": 305.9
},
"luminance": 0.31259
}Semantic roles & 50–950 ramp
primary
#BA7BF6
secondary
#E5F5D6
accent
#E40270
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85