#BA7EF2#BA7EF2
#BA7EF2 is a light, vivid violet. Relative luminance 0.318; OKLCH L 70.1% C 0.173 H 306.3°. Best body text is #000000 at 7.35:1 contrast (WCAG AA passes).
Color values
| HEX | #BA7EF2 |
|---|---|
| RGB | rgb(186, 126, 242) |
| HSL | hsl(271, 82%, 72%) |
| HSV | hsv(271, 48%, 95%) |
| CMYK | cmyk(23.1%, 47.9%, 0%, 5.1%) |
| CIE-LAB | lab(63.15, 44.83, -49.69) |
| CIE-LCH | lch(63.15, 66.93, 312.05°) |
| OKLab | oklab(70.08% 0.1023 -0.1391) |
| OKLCH | oklch(70.08% 0.173 306.3) |
| XYZ | xyz(43.7343, 31.7720, 87.8158) |
| Luminance | 0.3177 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 1.93
Easter Purple
#C071FE
ΔE00 3.49
Light Urple
#B36FF6
ΔE00 4.02
Liliac
#C48EFD
ΔE00 4.23
Bright Lavender
#C760FF
ΔE00 6.59
Bright Lilac
#C95EFB
ΔE00 6.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA7EF2 #B6F27E
analogous
#807EF2 #BA7EF2 #F27EF0
triadic
#BA7EF2 #F2BA7E #7EF2BA
tetradic
#BA7EF2 #F2807E #B6F27E #7EF0F2
square
#BA7EF2 #F2807E #B6F27E #7EF0F2
split-complementary
#BA7EF2 #F0F27E #7EF280
monochromatic
#7E16DF #9C46EC #BA7EF2 #D8B6F8 #F0E3FC
Accessibility & contrast
On white
2.86
#BA7EF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.35
#BA7EF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BA7EF2
7.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA7EF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA7EF2 | 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)
#5E97F6
Deuteranopia (green-blind)
#6F99EF
Tritanopia (blue-blind)
#B192AD
Achromatopsia (no color)
#999999
Design tokens & code
CSS
--color: #ba7ef2; /* rgb */ color: rgb(186, 126, 242); /* oklch */ color: oklch(70.1% 0.173 306.3);
Tailwind
colors: {
custom: {
50: '#d1a5f7',
500: '#ba7ef2',
950: '#000000',
},
}SCSS
$custom: #ba7ef2; $custom-light: #d1a5f7; $custom-dark: #000000;
JSON
{
"hex": "#ba7ef2",
"rgb": {
"r": 186,
"g": 126,
"b": 242
},
"hsl": {
"h": 271.034,
"s": 81.69,
"l": 72.157
},
"oklch": {
"l": 0.70085,
"c": 0.17265,
"h": 306.3
},
"luminance": 0.31772
}Semantic roles & 50–950 ramp
primary
#BA7EF2
secondary
#E5F4D7
accent
#DE076F
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85