#ba4fad
a balanced, soft magenta / pink · warm · closest name: orchid
RGB
186, 79, 173
HSL
307°, 44%, 52%
CMYK
0, 58, 7, 27
Luminance
0.1905
Every format
| HEX | #ba4fad |
| RGB | rgb(186, 79, 173) |
| HSL | hsl(307, 44%, 52%) |
| CMYK | cmyk(0%, 58%, 7%, 27%) |
| LAB | lab(50.8 55.0 -30.0) |
| LCH | lch(50.8 62.6 331.3) |
| OKLCH | oklch(0.598 0.177 332.5) |
Copy-ready code
/* CSS */
color: #ba4fad;
background-color: #ba4fad;
/* Tailwind (arbitrary) */
class="text-[#ba4fad] bg-[#ba4fad]"
/* SCSS */
$brand: #ba4fad;
/* SwiftUI */
Color(red: 0.729, green: 0.310, blue: 0.678)
/* Android */
Color.parseColor("#ba4fad")Accessibility — WCAG contrast
Aa
#ba4fad on white: 4.37:1
AA ✗ fail · AA-large ✓ · AAA ✗
Aa
#ba4fad on black: 4.81:1
AA ✓ pass · AA-large ✓ · AAA ✗
true color
protanopia
deuteranopia
tritanopia
RGB percentages
Red72.9%
Green31.0%
Blue67.8%
CMYK percentages
Cyan0.0%
Magenta57.5%
Yellow7.0%
Key (black)27.1%
Color previews
#ba4fad text on a black background
contrast 4.81:1
Card sample
#ba4fad text on a white background
contrast 4.37:1
Card sample
CSS3 live lab
Text font color
The quick brown fox
color: #ba4fad;
Background color
Panel with #ba4fad background
background-color: #ba4fad;
Text shadow — hex
Glowing headline
text-shadow: 2px 2px 8px #ba4fad;
Text shadow — RGB
Soft neon halo
text-shadow: 0 0 14px rgba(186, 79, 173, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 79, 173, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba4fad; background: linear-gradient(135deg, #ba4fad, #BA4F66);