#BA3FAB#BA3FAB
#BA3FAB is a mid, vivid purple. Relative luminance 0.169; OKLCH L 57.9% C 0.199 H 333.0°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).
Color values
| HEX | #BA3FAB |
|---|---|
| RGB | rgb(186, 63, 171) |
| HSL | hsl(307, 49%, 49%) |
| HSV | hsv(307, 66%, 73%) |
| CMYK | cmyk(0%, 66.1%, 8.1%, 27.1%) |
| CIE-LAB | lab(48.18, 61.42, -32.87) |
| CIE-LCH | lch(48.18, 69.67, 331.85°) |
| OKLab | oklab(57.93% 0.177 -0.09) |
| OKLCH | oklch(57.93% 0.199 333) |
| XYZ | xyz(29.3780, 16.9367, 40.2420) |
| Luminance | 0.1693 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 3.11
Ugly Purple
#A442A0
ΔE00 4.25
Pinky Purple
#C94CBE
ΔE00 5.19
Medium Purple
#9E43A2
ΔE00 5.36
Barney
#AC1DB8
ΔE00 7.19
Purply
#983FB2
ΔE00 7.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA3FAB #3FBA4E
analogous
#8C3FBA #BA3FAB #BA3F6E
triadic
#BA3FAB #ABBA3F #3FABBA
tetradic
#BA3FAB #BA8C3F #3FBA4E #3F6EBA
square
#BA3FAB #BA8C3F #3FBA4E #3F6EBA
split-complementary
#BA3FAB #6EBA3F #3FBA8C
monochromatic
#5F2057 #8C3081 #BA3FAB #CC6AC0 #DC97D4
Accessibility & contrast
On white
4.79
#BA3FAB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.39
#BA3FAB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #BA3FAB
4.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA3FAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##BA3FAB | 1.00 | 4.79 | 4.39 | 4.79 |
| #FFFFFF | 4.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 4.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#3B67AE
Deuteranopia (green-blind)
#6579A8
Tritanopia (blue-blind)
#C24A6F
Achromatopsia (no color)
#727272
Design tokens & code
CSS
--color: #ba3fab; /* rgb */ color: rgb(186, 63, 171); /* oklch */ color: oklch(57.9% 0.199 333.0);
Tailwind
colors: {
custom: {
50: '#d27dc4',
500: '#ba3fab',
950: '#000000',
},
}SCSS
$custom: #ba3fab; $custom-light: #d27dc4; $custom-dark: #000000;
JSON
{
"hex": "#ba3fab",
"rgb": {
"r": 186,
"g": 63,
"b": 171
},
"hsl": {
"h": 307.317,
"s": 49.398,
"l": 48.824
},
"oklch": {
"l": 0.57925,
"c": 0.19855,
"h": 333
},
"luminance": 0.16934
}Semantic roles & 50–950 ramp
primary
#BA3FAB
secondary
#8DC894
accent
#D9604F
background
#FDF8FC
surface
#FAEFF8
border
#D3CAD1
text
#140A12
muted
#837C81