Skip to content

#ba0fac

a dark, electric magenta / pink · warm · closest name: purple

RGB
186, 15, 172
HSL
305°, 85%, 39%
CMYK
0, 92, 8, 27
Luminance
0.1376

Every format

HEX#ba0fac
RGBrgb(186, 15, 172)
HSLhsl(305, 85%, 39%)
CMYKcmyk(0%, 92%, 8%, 27%)
LABlab(43.9 74.0 -40.2)
LCHlch(43.9 84.3 331.5)
OKLCHoklch(0.549 0.240 332.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba0fac on white: 5.60:1
AA ✓ pass · AA-large · AAA
Aa
#ba0fac on black: 3.75:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green5.9%
Blue67.5%

CMYK percentages

Cyan0.0%
Magenta91.9%
Yellow7.5%
Key (black)27.1%

Color previews

#ba0fac text on a black background

contrast 3.75:1

Card sample

#ba0fac text on a white background

contrast 5.60:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba0fac

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba0fac in the Color Lab