Skip to content

#ab2016

a dark, electric red · warm · closest name: firebrick

RGB
171, 32, 22
HSL
4°, 77%, 38%
CMYK
0, 81, 87, 33
Luminance
0.0975

Every format

HEX#ab2016
RGBrgb(171, 32, 22)
HSLhsl(4, 77%, 38%)
CMYKcmyk(0%, 81%, 87%, 33%)
LABlab(37.4 54.1 41.9)
LCHlch(37.4 68.4 37.7)
OKLCHoklch(0.481 0.176 29.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2016 on white: 7.12:1
AA ✓ pass · AA-large · AAA
Aa
#ab2016 on black: 2.95:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red67.1%
Green12.5%
Blue8.6%

CMYK percentages

Cyan0.0%
Magenta81.3%
Yellow87.1%
Key (black)32.9%

Color previews

#ab2016 text on a black background

contrast 2.95:1

Card sample

#ab2016 text on a white background

contrast 7.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2016

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ab2016 in the Color Lab