#BA71F2#BA71F2
#BA71F2 is a light, vivid violet. Relative luminance 0.287; OKLCH L 68.1% C 0.193 H 308.2°. Best body text is #000000 at 6.73:1 contrast (WCAG AA passes).
Color values
| HEX | #BA71F2 |
|---|---|
| RGB | rgb(186, 113, 242) |
| HSL | hsl(274, 83%, 70%) |
| HSV | hsv(274, 53%, 95%) |
| CMYK | cmyk(23.1%, 53.3%, 0%, 5.1%) |
| CIE-LAB | lab(60.48, 51.72, -53.94) |
| CIE-LCH | lch(60.48, 74.72, 313.80°) |
| OKLab | oklab(68.1% 0.1193 -0.1514) |
| OKLCH | oklch(68.1% 0.193 308.2) |
| XYZ | xyz(42.1787, 28.6607, 87.2973) |
| Luminance | 0.2866 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Urple
#B36FF6
ΔE00 1.71
Light Purple
#BF77F6
ΔE00 1.72
Easter Purple
#C071FE
ΔE00 1.78
Bright Lavender
#C760FF
ΔE00 3.84
Bright Lilac
#C95EFB
ΔE00 4.14
Lighter Purple
#A55AF4
ΔE00 6.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA71F2 #A9F271
analogous
#7971F2 #BA71F2 #F271EA
triadic
#BA71F2 #F2BA71 #71F2BA
tetradic
#BA71F2 #F27971 #A9F271 #71EAF2
square
#BA71F2 #F27971 #A9F271 #71EAF2
split-complementary
#BA71F2 #EAF271 #71F279
monochromatic
#8114D5 #9F39ED #BA71F2 #D5A9F7 #F0E1FC
Accessibility & contrast
On white
3.12
#BA71F2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.73
#BA71F2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #BA71F2
6.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA71F2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA71F2 | 1.00 | 3.12 | 6.73 | 6.73 |
| #FFFFFF | 3.12 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.73 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.73 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#498FF6
Deuteranopia (green-blind)
#6193EF
Tritanopia (blue-blind)
#B288A7
Achromatopsia (no color)
#929292
Design tokens & code
CSS
--color: #ba71f2; /* rgb */ color: rgb(186, 113, 242); /* oklch */ color: oklch(68.1% 0.193 308.2);
Tailwind
colors: {
custom: {
50: '#d29cf7',
500: '#ba71f2',
950: '#000000',
},
}SCSS
$custom: #ba71f2; $custom-light: #d29cf7; $custom-dark: #000000;
JSON
{
"hex": "#ba71f2",
"rgb": {
"r": 186,
"g": 113,
"b": 242
},
"hsl": {
"h": 273.953,
"s": 83.226,
"l": 69.608
},
"oklch": {
"l": 0.68104,
"c": 0.19278,
"h": 308.2
},
"luminance": 0.2866
}Semantic roles & 50–950 ramp
primary
#BA71F2
secondary
#DDF2CD
accent
#E00664
background
#FDF9FF
surface
#FAF2FF
border
#D3CCD7
text
#140E17
muted
#837E85