Skip to content

#af1f0b

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

RGB
175, 31, 11
HSL
7°, 88%, 37%
CMYK
0, 82, 94, 31
Luminance
0.1012

At a glance

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

Hex
#af1f0b
Hue
red
Saturation
88%
electric
Lightness
37%
dark
Brightness
69%
HSV value
Perceived
39%
weighted brightness
Luminance
0.1012
WCAG relative
Temperature
Warm
13/100 cool
Color family
Red
Tone
Electric
Best ink
White
6.95:1
Closest name
Firebrick
ΔE2000 4.8
Where it sits
Hue7° of 360°
Saturation88%
Lightness37%
Temperature
Warm ← → Cool13% 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#af1f0b
RGBrgb(175, 31, 11)
HSLhsl(7, 88%, 37%)
CMYKcmyk(0%, 82%, 94%, 31%)
LABlab(38.1 55.4 47.4)
LCHlch(38.1 72.8 40.6)
OKLCHoklch(0.487 0.181 31.1)
Decimal11476747
Display P3color(display-p3 0.686 0.122 0.043)

Copy-ready code

/* CSS */
color: #af1f0b;
background-color: #af1f0b;
/* Tailwind (arbitrary) */
class="text-[#af1f0b] bg-[#af1f0b]"
/* SCSS */
$brand: #af1f0b;
/* SwiftUI */
Color(red: 0.686, green: 0.122, blue: 0.043)
/* Android */
Color.parseColor("#af1f0b")
/* Flutter */
Color(0xFFAF1F0B)
/* Python / OpenCV (BGR) */
(11, 31, 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 #af1f0b · 6.95:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.95:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.02:1
AA fail · AA large pass · AAA fail
Reading the other direction: #af1f0b as text scores 6.95:1 on white and 3.02:1 on black.

Accessibility — WCAG contrast

Aa
#af1f0b on white: 6.95:1
AA ✓ pass · AA-large · AAA
Aa
#af1f0b on black: 3.02:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #4F4504
deuteranopia · #726500
tritanopia · #C2001D

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af1f0b 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.

#FDF3F2
#FAE8E5
#F8CAC4
#F8A195
#F57361
#F2442C
#E6290E
#af1f0b
#9A1B0A
#6F180C
#450F07
Base = 700Lightest = 50 · #FDF3F2Darkest = 950 · #450F07
:root {
  --brand-50: #FDF3F2;
  --brand-100: #FAE8E5;
  --brand-200: #F8CAC4;
  --brand-300: #F8A195;
  --brand-400: #F57361;
  --brand-500: #F2442C;
  --brand-600: #E6290E;
  --brand-700: #af1f0b;
  --brand-800: #9A1B0A;
  --brand-900: #6F180C;
  --brand-950: #450F07;
  --brand: #af1f0b;
  --brand-ink: #ffffff;
}

Colors that work with #af1f0b

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#FAF5F4
Tinted page background
Border#EDC5C0
Hairlines and dividers
Muted text#9B544B
Captions on the surface
Accent#08C4AC
Second voice, not a rival
Dark variant#781508
Hover, pressed, headers
Light variant#FDEAE7
Selected rows, tints
Dark surface#241614
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 #af1f0b

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
  • 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#0B9BAF
Analogous left#AF0B49
Analogous right#AF710B
Split-complement 1#0BAF71
Split-complement 2#0B49AF
Triadic 1#0BAF1F
Triadic 2#1F0BAF
Tetradic#49AF0B

RGB percentages

Red68.6%
Green12.2%
Blue4.3%

CMYK percentages

Cyan0.0%
Magenta82.3%
Yellow93.7%
Key (black)31.4%

Color previews

#af1f0b text on a black background

contrast 3.02:1

Card sample

#af1f0b text on a white background

contrast 6.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af1f0b

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.

#af1f0b 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.

#af1f0b, answered

What color is #af1f0b?

#af1f0b is a dark electric red, closest to Firebrick (ΔE2000 4.8). It sits at 7° on the hue wheel with 88% saturation and 37% lightness, which reads as warm.

What is the RGB value of #af1f0b?

rgb(175, 31, 11) — 175 red, 31 green and 11 blue out of 255, or 68.6% / 12.2% / 4.3% by channel.

Is #af1f0b a light or a dark color?

It is a dark color. Relative luminance is 0.1012 and perceived brightness is 39%, so white text on it reaches 6.95:1.

Should I use black or white text on #af1f0b?

White. It scores 6.95:1 against #af1f0b, versus 3.02:1 for black — AA at any size.

What is the complementary color of #af1f0b?

#0B9BAF sits directly opposite on the wheel. Softer options are the split-complements #0BAF71 and #0B49AF, which give the same contrast with far less vibration.

What colors go well with #af1f0b?

For interface work: #FAF5F4 as the surface, #EDC5C0 for borders, #9B544B for secondary text, #08C4AC as an accent and #781508 for hover and pressed states. For a palette, the analogous pair #AF0B49 and #AF710B stays calm, while #0B9BAF is the loudest partner.

What is #af1f0b in CMYK for printing?

cmyk(0%, 82%, 94%, 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 #af1f0b warm or cool?

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

Work with #af1f0b in the Color Lab