Skip to content

#af151d

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

RGB
175, 21, 29
HSL
357°, 79%, 38%
CMYK
0, 88, 83, 31
Luminance
0.0974

At a glance

Every number on this page in one read: what #af151d is made of, how bright it looks, and which way it leans.

Hex
#af151d
Hue
357°
red
Saturation
79%
electric
Lightness
38%
dark
Brightness
69%
HSV value
Perceived
38%
weighted brightness
Luminance
0.0974
WCAG relative
Temperature
Warm
18/100 cool
Color family
Red
Tone
Electric
Best ink
White
7.12:1
Closest name
Firebrick
ΔE2000 1.6
Where it sits
Hue357° of 360°
Saturation79%
Lightness38%
Temperature
Warm ← → Cool18% cool

Reads warm. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#af151d
RGBrgb(175, 21, 29)
HSLhsl(357, 79%, 38%)
CMYKcmyk(0%, 88%, 83%, 31%)
LABlab(37.4 58.0 38.5)
LCHlch(37.4 69.6 33.6)
OKLCHoklch(0.483 0.185 26.1)
Decimal11474205
Display P3color(display-p3 0.686 0.082 0.114)

Copy-ready code

/* CSS */
color: #af151d;
background-color: #af151d;
/* Tailwind (arbitrary) */
class="text-[#af151d] bg-[#af151d]"
/* SCSS */
$brand: #af151d;
/* SwiftUI */
Color(red: 0.686, green: 0.082, blue: 0.114)
/* Android */
Color.parseColor("#af151d")
/* Flutter */
Color(0xFFAF151D)
/* Python / OpenCV (BGR) */
(29, 21, 175)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#ffffff on #af151d · 7.12:1
Use #ffffffAAA at every size.
Aa
White text · 7.12:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.95:1
AA fail · AA large fail · AAA fail
Reading the other direction: #af151d as text scores 7.12:1 on white and 2.95:1 on black.

Accessibility — WCAG contrast

Aa
#af151d on white: 7.12:1
AA ✓ pass · AA-large · AAA
Aa
#af151d on black: 2.95:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #4B431B
deuteranopia · #706314
tritanopia · #C1001B

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af151d is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#FCF3F3
#F9E6E7
#F5C7C9
#F39B9F
#ED6970
#E73740
#DB1A24
#af151d
#921118
#691116
#420B0D
Base = 700Lightest = 50 · #FCF3F3Darkest = 950 · #420B0D
:root {
  --brand-50: #FCF3F3;
  --brand-100: #F9E6E7;
  --brand-200: #F5C7C9;
  --brand-300: #F39B9F;
  --brand-400: #ED6970;
  --brand-500: #E73740;
  --brand-600: #DB1A24;
  --brand-700: #af151d;
  --brand-800: #921118;
  --brand-900: #691116;
  --brand-950: #420B0D;
  --brand: #af151d;
  --brand-ink: #ffffff;
}

Colors that work with #af151d

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#ffffff
White wins here
Surface#FAF4F5
Tinted page background
Border#EDC0C2
Hairlines and dividers
Muted text#9B4B4F
Captions on the surface
Accent#12BA87
Second voice, not a rival
Dark variant#720E13
Hover, pressed, headers
Light variant#FCE8E9
Selected rows, tints
Dark surface#241415
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #af151d

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Text on black or near-black surfaces
  • Full-page backgrounds — tiring over long sessions
  • Black text placed on it
  • Pairing with a same-lightness hue — edges vibrate

Similar colors

One move away from this hex in each direction. Every swatch is its own page.

Color relationships

The wheel positions with their names attached, so you can grab the one you actually need.

Complementary#15AFA7
Analogous left#AF156A
Analogous right#AF5A15
Split-complement 1#15AF5A
Split-complement 2#156AAF
Triadic 1#1DAF15
Triadic 2#151DAF
Tetradic#6AAF15

RGB percentages

Red68.6%
Green8.2%
Blue11.4%

CMYK percentages

Cyan0.0%
Magenta88.0%
Yellow83.4%
Key (black)31.4%

Color previews

#af151d text on a black background

contrast 2.95:1

Card sample

#af151d text on a white background

contrast 7.12:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af151d

Shades — darker

Tints — lighter

Color harmonies

Nearest named colors

Ranked with CIEDE2000 across all 139 CSS keywords. Under ΔE 2 the eye stops telling them apart; over ΔE 10 they are plainly different colors.

#af151d in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Food and drinkEntertainmentRetailSport
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#af151d, answered

What color is #af151d?

#af151d is a dark electric red, closest to Firebrick (ΔE2000 1.6). It sits at 357° on the hue wheel with 79% saturation and 38% lightness, which reads as warm.

What is the RGB value of #af151d?

rgb(175, 21, 29) — 175 red, 21 green and 29 blue out of 255, or 68.6% / 8.2% / 11.4% by channel.

Is #af151d a light or a dark color?

It is a dark color. Relative luminance is 0.0974 and perceived brightness is 38%, so white text on it reaches 7.12:1.

Should I use black or white text on #af151d?

White. It scores 7.12:1 against #af151d, versus 2.95:1 for black — AAA at any size.

What is the complementary color of #af151d?

#15AFA7 sits directly opposite on the wheel. Softer options are the split-complements #15AF5A and #156AAF, which give the same contrast with far less vibration.

What colors go well with #af151d?

For interface work: #FAF4F5 as the surface, #EDC0C2 for borders, #9B4B4F for secondary text, #12BA87 as an accent and #720E13 for hover and pressed states. For a palette, the analogous pair #AF156A and #AF5A15 stays calm, while #15AFA7 is the loudest partner.

What is #af151d in CMYK for printing?

cmyk(0%, 88%, 83%, 31%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.

Is #af151d warm or cool?

Warm — it scores 18 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF3A15; nudged cooler, #B11355.

Work with #af151d in the Color Lab