#BA2FAF#BA2FAF
#BA2FAF is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.7% C 0.220 H 331.6°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).
Color values
| HEX | #BA2FAF |
|---|---|
| RGB | rgb(186, 47, 175) |
| HSL | hsl(305, 60%, 46%) |
| HSV | hsv(305, 75%, 73%) |
| CMYK | cmyk(0%, 74.7%, 5.9%, 27.1%) |
| CIE-LAB | lab(46.40, 67.64, -38.02) |
| CIE-LCH | lch(46.40, 77.59, 330.66°) |
| OKLab | oklab(56.71% 0.1935 -0.1047) |
| OKLCH | oklch(56.71% 0.22 331.6) |
| XYZ | xyz(29.0041, 15.5697, 42.0268) |
| Luminance | 0.1557 (WCAG relative) |
| Temperature | neutral |
| Family | purple |
Closest named colors
Purpley Pink
#C83CB9
ΔE00 4.30
Ugly Purple
#A442A0
ΔE00 4.31
Barney
#AC1DB8
ΔE00 4.83
Medium Purple
#9E43A2
ΔE00 5.10
Purply
#983FB2
ΔE00 6.58
Pinky Purple
#C94CBE
ΔE00 6.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#BA2FAF #2FBA3A
analogous
#7F2FBA #BA2FAF #BA2F69
triadic
#BA2FAF #AFBA2F #2FAFBA
tetradic
#BA2FAF #BA7F2F #2FBA3A #2F69BA
square
#BA2FAF #BA7F2F #2FBA3A #2F69BA
split-complementary
#BA2FAF #69BA2F #2FBA7F
monochromatic
#581653 #892381 #BA2FAF #D353C9 #E084D9
Accessibility & contrast
On white
5.11
#BA2FAF on #FFFFFF
AA ✓AA large ✓AAA ✗
On black
4.11
#BA2FAF on #000000
AA ✗AA large ✓AAA ✗
Best text color
#FFFFFF on #BA2FAF
5.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##BA2FAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##BA2FAF | 1.00 | 5.11 | 4.11 | 5.11 |
| #FFFFFF | 5.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 4.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 5.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2362B2
Deuteranopia (green-blind)
#5C75AC
Tritanopia (blue-blind)
#C2406D
Achromatopsia (no color)
#6E6E6E
Design tokens & code
CSS
--color: #ba2faf; /* rgb */ color: rgb(186, 47, 175); /* oklch */ color: oklch(56.7% 0.220 331.6);
Tailwind
colors: {
custom: {
50: '#d376c7',
500: '#ba2faf',
950: '#000000',
},
}SCSS
$custom: #ba2faf; $custom-light: #d376c7; $custom-dark: #000000;
JSON
{
"hex": "#ba2faf",
"rgb": {
"r": 186,
"g": 47,
"b": 175
},
"hsl": {
"h": 304.748,
"s": 59.657,
"l": 45.686
},
"oklch": {
"l": 0.5671,
"c": 0.22002,
"h": 331.6
},
"luminance": 0.15567
}Semantic roles & 50–950 ramp
primary
#BA2FAF
secondary
#7CC982
accent
#E35145
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#150A13
muted
#837C82