#BA7EC6#BA7EC6
#BA7EC6 is a light, vivid purple. Relative luminance 0.294; OKLCH L 67.9% C 0.122 H 320.7°. Best body text is #000000 at 6.89:1 contrast (WCAG AA passes).
Color values
| HEX | #BA7EC6 |
|---|---|
| RGB | rgb(186, 126, 198) |
| HSL | hsl(290, 39%, 64%) |
| HSV | hsv(290, 36%, 78%) |
| CMYK | cmyk(6.1%, 36.4%, 0%, 22.4%) |
| CIE-LAB | lab(61.17, 35.41, -28.24) |
| CIE-LCH | lch(61.17, 45.29, 321.43°) |
| OKLab | oklab(67.94% 0.0946 -0.0773) |
| OKLCH | oklch(67.94% 0.122 320.7) |
| XYZ | xyz(37.9023, 29.4392, 57.1009) |
| Luminance | 0.2944 (WCAG relative) |
| Temperature | cool |
| Family | purple |
Closest named colors
Orchid (survey)
#C875C4
ΔE00 3.72
Wisteria
#A87DC2
ΔE00 3.84
Pale Purple
#B790D4
ΔE00 5.61
Soft Purple
#A66FB5
ΔE00 5.73
Lavender Pink
#DD85D7
ΔE00 6.60
Orchid
#DA70D6
ΔE00 6.65
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA7EC6 #8AC67E
analogous
#967EC6 #BA7EC6 #C67EAE
triadic
#BA7EC6 #C6BA7E #7EC6BA
tetradic
#BA7EC6 #C6967E #8AC67E #7EAEC6
square
#BA7EC6 #C6967E #8AC67E #7EAEC6
split-complementary
#BA7EC6 #AEC67E #7EC696
monochromatic
#7F3E8C #A354B3 #BA7EC6 #D1A8D9 #E7D3EC
Accessibility & contrast
On white
3.05
#BA7EC6 on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
6.89
#BA7EC6 on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #BA7EC6
6.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA7EC6 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA7EC6 | 1.00 | 3.05 | 6.89 | 6.89 |
| #FFFFFF | 3.05 | 1.00 | 21.00 | 21.00 |
| #000000 | 6.89 | 21.00 | 1.00 | 1.00 |
| ##000000 | 6.89 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#758FC9
Deuteranopia (green-blind)
#8496C4
Tritanopia (blue-blind)
#BB8699
Achromatopsia (no color)
#949494
Design tokens & code
CSS
--color: #ba7ec6; /* rgb */ color: rgb(186, 126, 198); /* oklch */ color: oklch(67.9% 0.122 320.7);
Tailwind
colors: {
custom: {
50: '#d0a4d7',
500: '#ba7ec6',
950: '#000000',
},
}SCSS
$custom: #ba7ec6; $custom-light: #d0a4d7; $custom-dark: #000000;
JSON
{
"hex": "#ba7ec6",
"rgb": {
"r": 186,
"g": 126,
"b": 198
},
"hsl": {
"h": 290,
"s": 38.71,
"l": 63.529
},
"oklch": {
"l": 0.67944,
"c": 0.12211,
"h": 320.7
},
"luminance": 0.29438
}Semantic roles & 50–950 ramp
primary
#BA7EC6
secondary
#C7DDC3
accent
#B23449
background
#FCFAFD
surface
#F9F4FA
border
#D2CED3
text
#140F14
muted
#827F83