#BA2FAB#BA2FAB
#BA2FAB is a mid, highly saturated purple. Relative luminance 0.154; OKLCH L 56.5% C 0.217 H 332.9°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).
Color values
| HEX | #BA2FAB |
|---|---|
| RGB | rgb(186, 47, 171) |
| HSL | hsl(306, 60%, 46%) |
| HSV | hsv(306, 75%, 73%) |
| CMYK | cmyk(0%, 74.7%, 8.1%, 27.1%) |
| CIE-LAB | lab(46.20, 67.03, -35.99) |
| CIE-LCH | lch(46.20, 76.08, 331.77°) |
| OKLab | oklab(56.49% 0.1934 -0.0988) |
| OKLCH | oklch(56.49% 0.217 332.9) |
| XYZ | xyz(28.6171, 15.4148, 39.9884) |
| Luminance | 0.1541 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Ugly Purple
#A442A0
ΔE00 4.12
Purpley Pink
#C83CB9
ΔE00 4.49
Medium Purple
#9E43A2
ΔE00 5.06
Barney
#AC1DB8
ΔE00 5.23
Purply
#983FB2
ΔE00 6.92
Pinky Purple
#C94CBE
ΔE00 7.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA2FAB #2FBA3E
analogous
#832FBA #BA2FAB #BA2F65
triadic
#BA2FAB #ABBA2F #2FABBA
tetradic
#BA2FAB #BA832F #2FBA3E #2F65BA
square
#BA2FAB #BA832F #2FBA3E #2F65BA
split-complementary
#BA2FAB #65BA2F #2FBA83
monochromatic
#581651 #89237E #BA2FAB #D353C6 #E084D6
Accessibility & contrast
On white
5.14
#BA2FAB on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.08
#BA2FAB on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #BA2FAB
5.14:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA2FAB | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##BA2FAB | 1.00 | 5.14 | 4.08 | 5.14 |
| #FFFFFF | 5.14 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.08 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.14 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2861AE
Deuteranopia (green-blind)
#5E74A8
Tritanopia (blue-blind)
#C23E6B
Achromatopsia (no color)
#6D6D6D
Design tokens & code
CSS
--color: #ba2fab; /* rgb */ color: rgb(186, 47, 171); /* oklch */ color: oklch(56.5% 0.217 332.9);
Tailwind
colors: {
custom: {
50: '#d376c4',
500: '#ba2fab',
950: '#000000',
},
}SCSS
$custom: #ba2fab; $custom-light: #d376c4; $custom-dark: #000000;
JSON
{
"hex": "#ba2fab",
"rgb": {
"r": 186,
"g": 47,
"b": 171
},
"hsl": {
"h": 306.475,
"s": 59.657,
"l": 45.686
},
"oklch": {
"l": 0.56494,
"c": 0.21714,
"h": 332.9
},
"luminance": 0.15412
}Semantic roles & 50–950 ramp
primary
#BA2FAB
secondary
#7CC984
accent
#E35645
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82