Skip to content

#af1f08

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

RGB
175, 31, 8
HSL
8°, 91%, 36%
CMYK
0, 82, 95, 31
Luminance
0.1011

At a glance

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

Hex
#af1f08
Hue
red
Saturation
91%
electric
Lightness
36%
dark
Brightness
69%
HSV value
Perceived
39%
weighted brightness
Luminance
0.1011
WCAG relative
Temperature
Warm
12/100 cool
Color family
Red
Tone
Electric
Best ink
White
6.95:1
Closest name
Firebrick
ΔE2000 5.3
Where it sits
Hue8° of 360°
Saturation91%
Lightness36%
Temperature
Warm ← → Cool12% 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#af1f08
RGBrgb(175, 31, 8)
HSLhsl(8, 91%, 36%)
CMYKcmyk(0%, 82%, 95%, 31%)
LABlab(38.0 55.3 48.4)
LCHlch(38.0 73.5 41.2)
OKLCHoklch(0.487 0.181 31.5)
Decimal11476744
Display P3color(display-p3 0.686 0.122 0.031)

Copy-ready code

/* CSS */
color: #af1f08;
background-color: #af1f08;
/* Tailwind (arbitrary) */
class="text-[#af1f08] bg-[#af1f08]"
/* SCSS */
$brand: #af1f08;
/* SwiftUI */
Color(red: 0.686, green: 0.122, blue: 0.031)
/* Android */
Color.parseColor("#af1f08")
/* Flutter */
Color(0xFFAF1F08)
/* Python / OpenCV (BGR) */
(8, 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 #af1f08 · 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: #af1f08 as text scores 6.95:1 on white and 3.02:1 on black.

Accessibility — WCAG contrast

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

Color scale — 50 to 950

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

#FDF3F2
#FBE8E4
#F9CAC3
#FAA294
#F8735E
#F54528
#EA2A0B
#C32309
#af1f08
#71180A
#460F06
Base = 800Lightest = 50 · #FDF3F2Darkest = 950 · #460F06
:root {
  --brand-50: #FDF3F2;
  --brand-100: #FBE8E4;
  --brand-200: #F9CAC3;
  --brand-300: #FAA294;
  --brand-400: #F8735E;
  --brand-500: #F54528;
  --brand-600: #EA2A0B;
  --brand-700: #C32309;
  --brand-800: #af1f08;
  --brand-900: #71180A;
  --brand-950: #460F06;
  --brand: #af1f08;
  --brand-ink: #ffffff;
}

Colors that work with #af1f08

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#EDC6C0
Hairlines and dividers
Muted text#9B564B
Captions on the surface
Accent#04C8B1
Second voice, not a rival
Dark variant#7A1606
Hover, pressed, headers
Light variant#FEEAE7
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 #af1f08

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#0898AF
Analogous left#AF0844
Analogous right#AF7308
Split-complement 1#08AF73
Split-complement 2#0844AF
Triadic 1#08AF1F
Triadic 2#1F08AF
Tetradic#44AF08

RGB percentages

Red68.6%
Green12.2%
Blue3.1%

CMYK percentages

Cyan0.0%
Magenta82.3%
Yellow95.4%
Key (black)31.4%

Color previews

#af1f08 text on a black background

contrast 3.02:1

Card sample

#af1f08 text on a white background

contrast 6.95:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af1f08

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.

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

#af1f08, answered

What color is #af1f08?

#af1f08 is a dark electric red, closest to Firebrick (ΔE2000 5.3). It sits at 8° on the hue wheel with 91% saturation and 36% lightness, which reads as warm.

What is the RGB value of #af1f08?

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

Is #af1f08 a light or a dark color?

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

Should I use black or white text on #af1f08?

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

What is the complementary color of #af1f08?

#0898AF sits directly opposite on the wheel. Softer options are the split-complements #08AF73 and #0844AF, which give the same contrast with far less vibration.

What colors go well with #af1f08?

For interface work: #FAF5F4 as the surface, #EDC6C0 for borders, #9B564B for secondary text, #04C8B1 as an accent and #7A1606 for hover and pressed states. For a palette, the analogous pair #AF0844 and #AF7308 stays calm, while #0898AF is the loudest partner.

What is #af1f08 in CMYK for printing?

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

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

Work with #af1f08 in the Color Lab