#BA7EE2#BA7EE2
#BA7EE2 is a light, vivid violet. Relative luminance 0.309; OKLCH L 69.3% C 0.154 H 310.6°. Best body text is #000000 at 7.17:1 contrast (WCAG AA passes).
Color values
| HEX | #BA7EE2 |
|---|---|
| RGB | rgb(186, 126, 226) |
| HSL | hsl(276, 63%, 69%) |
| HSV | hsv(276, 44%, 89%) |
| CMYK | cmyk(17.7%, 44.2%, 0%, 11.4%) |
| CIE-LAB | lab(62.38, 41.27, -42.04) |
| CIE-LCH | lch(62.38, 58.91, 314.47°) |
| OKLab | oklab(69.26% 0.1001 -0.1169) |
| OKLCH | oklch(69.26% 0.154 310.6) |
| XYZ | xyz(41.4355, 30.8525, 75.7091) |
| Luminance | 0.3085 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 3.71
Easter Purple
#C071FE
ΔE00 5.38
Liliac
#C48EFD
ΔE00 5.40
Light Urple
#B36FF6
ΔE00 5.60
Wisteria
#A87DC2
ΔE00 6.08
Pale Purple
#B790D4
ΔE00 6.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA7EE2 #A6E27E
analogous
#887EE2 #BA7EE2 #E27ED8
triadic
#BA7EE2 #E2BA7E #7EE2BA
tetradic
#BA7EE2 #E2887E #A6E27E #7ED8E2
square
#BA7EE2 #E2887E #A6E27E #7ED8E2
split-complementary
#BA7EE2 #D8E27E #7EE288
monochromatic
#812ABB #9F4CD7 #BA7EE2 #D5B0ED #EFE2F8
Accessibility & contrast
On white
2.93
#BA7EE2 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.17
#BA7EE2 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BA7EE2
7.17:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA7EE2 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA7EE2 | 1.00 | 2.93 | 7.17 | 7.17 |
| #FFFFFF | 2.93 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.17 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.17 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6894E6
Deuteranopia (green-blind)
#7898DF
Tritanopia (blue-blind)
#B58DA5
Achromatopsia (no color)
#979797
Design tokens & code
CSS
--color: #ba7ee2; /* rgb */ color: rgb(186, 126, 226); /* oklch */ color: oklch(69.3% 0.154 310.6);
Tailwind
colors: {
custom: {
50: '#d0a4eb',
500: '#ba7ee2',
950: '#000000',
},
}SCSS
$custom: #ba7ee2; $custom-light: #d0a4eb; $custom-dark: #000000;
JSON
{
"hex": "#ba7ee2",
"rgb": {
"r": 186,
"g": 126,
"b": 226
},
"hsl": {
"h": 276,
"s": 63.291,
"l": 69.02
},
"oklch": {
"l": 0.69257,
"c": 0.15389,
"h": 310.6
},
"luminance": 0.30852
}Semantic roles & 50–950 ramp
primary
#BA7EE2
secondary
#DBEDCF
accent
#CB1A61
background
#FDFAFE
surface
#FAF4FD
border
#D3CED5
text
#140F16
muted
#837F84