Skip to content

#ba4dab

a balanced, soft magenta / pink · warm · closest name: orchid

RGB
186, 77, 171
HSL
308°, 44%, 52%
CMYK
0, 59, 8, 27
Luminance
0.1869

Every format

HEX#ba4dab
RGBrgb(186, 77, 171)
HSLhsl(308, 44%, 52%)
CMYKcmyk(0%, 59%, 8%, 27%)
LABlab(50.3 55.5 -29.5)
LCHlch(50.3 62.9 332.0)
OKLCHoklch(0.595 0.179 333.3)

Copy-ready code

/* CSS */
color: #ba4dab;
background-color: #ba4dab;
/* Tailwind (arbitrary) */
class="text-[#ba4dab] bg-[#ba4dab]"
/* SCSS */
$brand: #ba4dab;
/* SwiftUI */
Color(red: 0.729, green: 0.302, blue: 0.671)
/* Android */
Color.parseColor("#ba4dab")

Accessibility — WCAG contrast

Aa
#ba4dab on white: 4.43:1
AA ✗ fail · AA-large · AAA
Aa
#ba4dab on black: 4.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green30.2%
Blue67.1%

CMYK percentages

Cyan0.0%
Magenta58.6%
Yellow8.1%
Key (black)27.1%

Color previews

#ba4dab text on a black background

contrast 4.74:1

Card sample

#ba4dab text on a white background

contrast 4.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #ba4dab;
Background color
Panel with #ba4dab background
background-color: #ba4dab;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #ba4dab;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(186, 77, 171, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 77, 171, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba4dab;
background: linear-gradient(135deg, #ba4dab, #BA4D62);

Monochromatic scale

Palettes built from #ba4dab

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba4dab in the Color Lab