#BA4FAB#BA4FAB
#BA4FAB is a mid, vivid purple. Relative luminance 0.190; OKLCH L 59.7% C 0.176 H 333.3°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).
Color values
| HEX | #BA4FAB |
|---|---|
| RGB | rgb(186, 79, 171) |
| HSL | hsl(308, 44%, 52%) |
| HSV | hsv(308, 58%, 73%) |
| CMYK | cmyk(0%, 57.5%, 8.1%, 27.1%) |
| CIE-LAB | lab(50.66, 54.61, -29.01) |
| CIE-LCH | lch(50.66, 61.84, 332.03°) |
| OKLab | oklab(59.73% 0.1572 -0.0791) |
| OKLCH | oklch(59.73% 0.176 333.3) |
| XYZ | xyz(30.3964, 18.9735, 40.5815) |
| Luminance | 0.1897 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 3.79
Pinky Purple
#C94CBE
ΔE00 3.80
Purplish Pink
#CE5DAE
ΔE00 6.01
Ugly Purple
#A442A0
ΔE00 6.09
Medium Purple
#9E43A2
ΔE00 7.10
Mediumorchid
#BA55D3
ΔE00 7.36
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA4FAB #4FBA5E
analogous
#934FBA #BA4FAB #BA4F76
triadic
#BA4FAB #ABBA4F #4FABBA
tetradic
#BA4FAB #BA934F #4FBA5E #4F76BA
square
#BA4FAB #BA934F #4FBA5E #4F76BA
split-complementary
#BA4FAB #76BA4F #4FBA93
monochromatic
#66285E #923986 #BA4FAB #CB7BC0 #DCA7D5
Accessibility & contrast
On white
4.38
#BA4FAB on #FFFFFF
AA ✗AA large ✓AAA ✗
On black
4.79
#BA4FAB on #000000
AA ✓AA large ✓AAA ✗
Best text color
#000000 on #BA4FAB
4.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA4FAB | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##BA4FAB | 1.00 | 4.38 | 4.79 | 4.79 |
| #FFFFFF | 4.38 | 1.00 | 21.00 | 21.00 |
| #000000 | 4.79 | 21.00 | 1.00 | 1.00 |
| ##000000 | 4.79 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#4D6FAE
Deuteranopia (green-blind)
#6E7EA8
Tritanopia (blue-blind)
#C25776
Achromatopsia (no color)
#797979
Design tokens & code
CSS
--color: #ba4fab; /* rgb */ color: rgb(186, 79, 171); /* oklch */ color: oklch(59.7% 0.176 333.3);
Tailwind
colors: {
custom: {
50: '#d186c4',
500: '#ba4fab',
950: '#000000',
},
}SCSS
$custom: #ba4fab; $custom-light: #d186c4; $custom-dark: #000000;
JSON
{
"hex": "#ba4fab",
"rgb": {
"r": 186,
"g": 79,
"b": 171
},
"hsl": {
"h": 308.411,
"s": 43.673,
"l": 51.961
},
"oklch": {
"l": 0.59733,
"c": 0.17593,
"h": 333.3
},
"luminance": 0.18971
}Semantic roles & 50–950 ramp
primary
#BA4FAB
secondary
#9BCAA2
accent
#D36654
background
#FDF8FC
surface
#FAF0F8
border
#D3CBD1
text
#140C12
muted
#837D81