#BA9ECD#BA9ECD
#BA9ECD is a light, moderate violet. Relative luminance 0.393; OKLCH L 74.0% C 0.073 H 311.4°. Best body text is #000000 at 8.86:1 contrast (WCAG AA passes).
Color values
| HEX | #BA9ECD |
|---|---|
| RGB | rgb(186, 158, 205) |
| HSL | hsl(276, 32%, 71%) |
| HSV | hsv(276, 23%, 80%) |
| CMYK | cmyk(9.3%, 22.9%, 0%, 19.6%) |
| CIE-LAB | lab(68.97, 19.06, -20.19) |
| CIE-LCH | lch(68.97, 27.77, 313.34°) |
| OKLab | oklab(73.99% 0.0484 -0.0548) |
| OKLCH | oklch(73.99% 0.073 311.4) |
| XYZ | xyz(43.4941, 39.3010, 63.0403) |
| Luminance | 0.3930 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Lilac
#C8A2C8
ΔE00 4.47
Lavender
#B39DDB
ΔE00 4.66
Pale Purple
#B790D4
ΔE00 5.62
Lavender (survey)
#C79FEF
ΔE00 7.28
Plum
#DDA0DD
ΔE00 7.42
Heather
#A484AC
ΔE00 8.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA9ECD #B1CD9E
analogous
#A29ECD #BA9ECD #CD9EC8
triadic
#BA9ECD #CDBA9E #9ECDBA
tetradic
#BA9ECD #CDA29E #B1CD9E #9EC8CD
square
#BA9ECD #CDA29E #B1CD9E #9EC8CD
split-complementary
#BA9ECD #C8CD9E #9ECDA2
monochromatic
#80529F #9D76B8 #BA9ECD #D7C6E2 #F1EBF5
Accessibility & contrast
On white
2.37
#BA9ECD on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.86
#BA9ECD on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BA9ECD
8.86:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA9ECD | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA9ECD | 1.00 | 2.37 | 8.86 | 8.86 |
| #FFFFFF | 2.37 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.86 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.86 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#97A7CF
Deuteranopia (green-blind)
#9DA9CB
Tritanopia (blue-blind)
#B8A4AE
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #ba9ecd; /* rgb */ color: rgb(186, 158, 205); /* oklch */ color: oklch(74.0% 0.073 311.4);
Tailwind
colors: {
custom: {
50: '#cfbadc',
500: '#ba9ecd',
950: '#000000',
},
}SCSS
$custom: #ba9ecd; $custom-light: #cfbadc; $custom-dark: #000000;
JSON
{
"hex": "#ba9ecd",
"rgb": {
"r": 186,
"g": 158,
"b": 205
},
"hsl": {
"h": 275.745,
"s": 31.973,
"l": 71.176
},
"oklch": {
"l": 0.73986,
"c": 0.07316,
"h": 311.4
},
"luminance": 0.39301
}Semantic roles & 50–950 ramp
primary
#BA9ECD
secondary
#E2EADD
accent
#AB3B68
background
#FCFBFD
surface
#F9F6FB
border
#D2D0D4
text
#141115
muted
#828083