#BA6EE2#BA6EE2
#BA6EE2 is a light, vivid violet. Relative luminance 0.271; OKLCH L 66.8% C 0.180 H 312.7°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).
Color values
| HEX | #BA6EE2 |
|---|---|
| RGB | rgb(186, 110, 226) |
| HSL | hsl(279, 67%, 66%) |
| HSV | hsv(279, 51%, 89%) |
| CMYK | cmyk(17.7%, 51.3%, 0%, 11.4%) |
| CIE-LAB | lab(59.05, 49.79, -47.29) |
| CIE-LCH | lch(59.05, 68.67, 316.47°) |
| OKLab | oklab(66.78% 0.122 -0.132) |
| OKLCH | oklch(66.78% 0.18 312.7) |
| XYZ | xyz(39.5507, 27.0829, 75.0808) |
| Luminance | 0.2708 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 3.66
Light Urple
#B36FF6
ΔE00 3.83
Easter Purple
#C071FE
ΔE00 4.21
Bright Lilac
#C95EFB
ΔE00 4.68
Bright Lavender
#C760FF
ΔE00 4.83
Mediumorchid
#BA55D3
ΔE00 6.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA6EE2 #96E26E
analogous
#806EE2 #BA6EE2 #E26ED0
triadic
#BA6EE2 #E2BA6E #6EE2BA
tetradic
#BA6EE2 #E2806E #96E26E #6ED0E2
square
#BA6EE2 #E2806E #96E26E #6ED0E2
split-complementary
#BA6EE2 #D0E26E #6EE280
monochromatic
#8124B2 #A23BD8 #BA6EE2 #D2A1EC #EBD4F6
Accessibility & contrast
On white
3.27
#BA6EE2 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.42
#BA6EE2 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #BA6EE2
6.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA6EE2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA6EE2 | 1.00 | 3.27 | 6.42 | 6.42 |
| #FFFFFF | 3.27 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.42 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.42 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#518AE6
Deuteranopia (green-blind)
#6990DF
Tritanopia (blue-blind)
#B6819E
Achromatopsia (no color)
#8E8E8E
Design tokens & code
CSS
--color: #ba6ee2; /* rgb */ color: rgb(186, 110, 226); /* oklch */ color: oklch(66.8% 0.180 312.7);
Tailwind
colors: {
custom: {
50: '#d19aeb',
500: '#ba6ee2',
950: '#000000',
},
}SCSS
$custom: #ba6ee2; $custom-light: #d19aeb; $custom-dark: #000000;
JSON
{
"hex": "#ba6ee2",
"rgb": {
"r": 186,
"g": 110,
"b": 226
},
"hsl": {
"h": 279.31,
"s": 66.667,
"l": 65.882
},
"oklch": {
"l": 0.66778,
"c": 0.17979,
"h": 312.7
},
"luminance": 0.27082
}Semantic roles & 50–950 ramp
primary
#BA6EE2
secondary
#D0E9C3
accent
#CF1756
background
#FDF9FE
surface
#FAF2FD
border
#D3CCD5
text
#140E16
muted
#837E84