#BA7CF2#BA7CF2
#BA7CF2 is a light, vivid violet. Relative luminance 0.313; OKLCH L 69.8% C 0.176 H 306.7°. Best body text is #000000 at 7.25:1 contrast (WCAG AA passes).
Color values
| HEX | #BA7CF2 |
|---|---|
| RGB | rgb(186, 124, 242) |
| HSL | hsl(272, 82%, 72%) |
| HSV | hsv(272, 49%, 95%) |
| CMYK | cmyk(23.1%, 48.8%, 0%, 5.1%) |
| CIE-LAB | lab(62.73, 45.90, -50.36) |
| CIE-LCH | lch(62.73, 68.14, 312.35°) |
| OKLab | oklab(69.77% 0.105 -0.141) |
| OKLCH | oklch(69.77% 0.176 306.7) |
| XYZ | xyz(43.4811, 31.2656, 87.7314) |
| Luminance | 0.3126 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 1.51
Easter Purple
#C071FE
ΔE00 3.07
Light Urple
#B36FF6
ΔE00 3.58
Liliac
#C48EFD
ΔE00 4.67
Bright Lavender
#C760FF
ΔE00 6.13
Bright Lilac
#C95EFB
ΔE00 6.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA7CF2 #B4F27C
analogous
#7F7CF2 #BA7CF2 #F27CEF
triadic
#BA7CF2 #F2BA7C #7CF2BA
tetradic
#BA7CF2 #F27F7C #B4F27C #7CEFF2
square
#BA7CF2 #F27F7C #B4F27C #7CEFF2
split-complementary
#BA7CF2 #EFF27C #7CF27F
monochromatic
#7F16DE #9D44EC #BA7CF2 #D7B4F8 #F0E3FC
Accessibility & contrast
On white
2.90
#BA7CF2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.25
#BA7CF2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BA7CF2
7.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA7CF2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA7CF2 | 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)
#5B96F6
Deuteranopia (green-blind)
#6C98EF
Tritanopia (blue-blind)
#B190AC
Achromatopsia (no color)
#989898
Design tokens & code
CSS
--color: #ba7cf2; /* rgb */ color: rgb(186, 124, 242); /* oklch */ color: oklch(69.8% 0.176 306.7);
Tailwind
colors: {
custom: {
50: '#d1a3f7',
500: '#ba7cf2',
950: '#000000',
},
}SCSS
$custom: #ba7cf2; $custom-light: #d1a3f7; $custom-dark: #000000;
JSON
{
"hex": "#ba7cf2",
"rgb": {
"r": 186,
"g": 124,
"b": 242
},
"hsl": {
"h": 271.525,
"s": 81.944,
"l": 71.765
},
"oklch": {
"l": 0.6977,
"c": 0.1758,
"h": 306.7
},
"luminance": 0.31265
}Semantic roles & 50–950 ramp
primary
#BA7CF2
secondary
#E4F4D6
accent
#DE076D
background
#FDFAFF
surface
#FAF4FF
border
#D3CED7
text
#140F17
muted
#837F85