Skip to content

#ba0f49

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

RGB
186, 15, 73
HSL
340°, 85%, 39%
CMYK
0, 92, 61, 27
Luminance
0.1126

Every format

HEX#ba0f49
RGBrgb(186, 15, 73)
HSLhsl(340, 85%, 39%)
CMYKcmyk(0%, 92%, 61%, 27%)
LABlab(40.0 63.8 15.2)
LCHlch(40.0 65.5 13.4)
OKLCHoklch(0.508 0.197 11.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba0f49 on white: 6.46:1
AA ✓ pass · AA-large · AAA
Aa
#ba0f49 on black: 3.25:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green5.9%
Blue28.6%

CMYK percentages

Cyan0.0%
Magenta91.9%
Yellow60.8%
Key (black)27.1%

Color previews

#ba0f49 text on a black background

contrast 3.25:1

Card sample

#ba0f49 text on a white background

contrast 6.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba0f49

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba0f49 in the Color Lab