#BA81DF#BA81DF
#BA81DF is a light, vivid violet. Relative luminance 0.315; OKLCH L 69.6% C 0.145 H 311.0°. Best body text is #000000 at 7.29:1 contrast (WCAG AA passes).
Color values
| HEX | #BA81DF |
|---|---|
| RGB | rgb(186, 129, 223) |
| HSL | hsl(276, 59%, 69%) |
| HSV | hsv(276, 42%, 87%) |
| CMYK | cmyk(16.6%, 42.2%, 0%, 12.5%) |
| CIE-LAB | lab(62.90, 38.98, -39.56) |
| CIE-LCH | lch(62.90, 55.54, 314.58°) |
| OKLab | oklab(69.6% 0.0954 -0.1097) |
| OKLCH | oklch(69.6% 0.145 311) |
| XYZ | xyz(41.4169, 31.4680, 73.6898) |
| Luminance | 0.3147 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Light Purple
#BF77F6
ΔE00 4.66
Pale Purple
#B790D4
ΔE00 5.37
Liliac
#C48EFD
ΔE00 5.37
Wisteria
#A87DC2
ΔE00 5.55
Easter Purple
#C071FE
ΔE00 6.36
Light Urple
#B36FF6
ΔE00 6.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA81DF #A6DF81
analogous
#8B81DF #BA81DF #DF81D5
triadic
#BA81DF #DFBA81 #81DFBA
tetradic
#BA81DF #DF8B81 #A6DF81 #81D5DF
square
#BA81DF #DF8B81 #A6DF81 #81D5DF
split-complementary
#BA81DF #D5DF81 #81DF8B
monochromatic
#812FB7 #9F50D3 #BA81DF #D5B2EB #EFE3F8
Accessibility & contrast
On white
2.88
#BA81DF on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.29
#BA81DF on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #BA81DF
7.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA81DF | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA81DF | 1.00 | 2.88 | 7.29 | 7.29 |
| #FFFFFF | 2.88 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.29 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.29 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#6E95E2
Deuteranopia (green-blind)
#7C99DC
Tritanopia (blue-blind)
#B68FA5
Achromatopsia (no color)
#989898
Design tokens & code
CSS
--color: #ba81df; /* rgb */ color: rgb(186, 129, 223); /* oklch */ color: oklch(69.6% 0.145 311.0);
Tailwind
colors: {
custom: {
50: '#d0a6e9',
500: '#ba81df',
950: '#000000',
},
}SCSS
$custom: #ba81df; $custom-light: #d0a6e9; $custom-dark: #000000;
JSON
{
"hex": "#ba81df",
"rgb": {
"r": 186,
"g": 129,
"b": 223
},
"hsl": {
"h": 276.383,
"s": 59.494,
"l": 69.02
},
"oklch": {
"l": 0.69601,
"c": 0.14538,
"h": 311
},
"luminance": 0.31467
}Semantic roles & 50–950 ramp
primary
#BA81DF
secondary
#DBECD0
accent
#C71E61
background
#FCFAFE
surface
#F9F4FD
border
#D2CED5
text
#140F16
muted
#827F84