Skip to content

#af2102

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

RGB
175, 33, 2
HSL
11°, 98%, 35%
CMYK
0, 81, 99, 31
Luminance
0.1021

Every format

HEX#af2102
RGBrgb(175, 33, 2)
HSLhsl(11, 98%, 35%)
CMYKcmyk(0%, 81%, 99%, 31%)
LABlab(38.2 54.7 50.7)
LCHlch(38.2 74.6 42.8)
OKLCHoklch(0.488 0.181 32.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2102 on white: 6.91:1
AA ✓ pass · AA-large · AAA
Aa
#af2102 on black: 3.04:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red68.6%
Green12.9%
Blue0.8%

CMYK percentages

Cyan0.0%
Magenta81.1%
Yellow98.9%
Key (black)31.4%

Color previews

#af2102 text on a black background

contrast 3.04:1

Card sample

#af2102 text on a white background

contrast 6.91:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2102

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #af2102 in the Color Lab