Skip to content

#af0c3b

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

RGB
175, 12, 59
HSL
343°, 87%, 37%
CMYK
0, 93, 66, 31
Luminance
0.0969

Every format

HEX#af0c3b
RGBrgb(175, 12, 59)
HSLhsl(343, 87%, 37%)
CMYKcmyk(0%, 93%, 66%, 31%)
LABlab(37.3 60.6 20.1)
LCHlch(37.3 63.9 18.4)
OKLCHoklch(0.483 0.188 14.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af0c3b on white: 7.15:1
AA ✓ pass · AA-large · AAA
Aa
#af0c3b on black: 2.94:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green4.7%
Blue23.1%

CMYK percentages

Cyan0.0%
Magenta93.1%
Yellow66.3%
Key (black)31.4%

Color previews

#af0c3b text on a black background

contrast 2.94:1

Card sample

#af0c3b text on a white background

contrast 7.15:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(175, 12, 59, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(175, 12, 59, 0.45);
Border & gradient
Gradient panel
border: 3px solid #af0c3b;
background: linear-gradient(135deg, #af0c3b, #AF4A0C);

Monochromatic scale

Palettes built from #af0c3b

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af0c3b in the Color Lab