Skip to content

#af061f

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

RGB
175, 6, 31
HSL
351°, 93%, 36%
CMYK
0, 97, 82, 31
Luminance
0.0934

At a glance

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

Hex
#af061f
Hue
351°
red
Saturation
93%
electric
Lightness
36%
dark
Brightness
69%
HSV value
Perceived
38%
weighted brightness
Luminance
0.0934
WCAG relative
Temperature
Warm
22/100 cool
Color family
Red
Tone
Electric
Best ink
White
7.32:1
Closest name
Firebrick
ΔE2000 2.8
Where it sits
Hue351° of 360°
Saturation93%
Lightness36%
Temperature
Warm ← → Cool22% 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#af061f
RGBrgb(175, 6, 31)
HSLhsl(351, 93%, 36%)
CMYKcmyk(0%, 97%, 82%, 31%)
LABlab(36.6 60.2 36.7)
LCHlch(36.6 70.5 31.4)
OKLCHoklch(0.477 0.190 24.2)
Decimal11470367
Display P3color(display-p3 0.686 0.024 0.122)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af061f on white: 7.32:1
AA ✓ pass · AA-large · AAA
Aa
#af061f on black: 2.87:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #48401E
deuteranopia · #6E6216
tritanopia · #C10015

Color scale — 50 to 950

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

#FDF2F3
#FBE4E8
#F9C2CA
#FB93A2
#F95C74
#F82645
#ED082A
#C50723
#af061f
#720918
#47050F
Base = 800Lightest = 50 · #FDF2F3Darkest = 950 · #47050F
:root {
  --brand-50: #FDF2F3;
  --brand-100: #FBE4E8;
  --brand-200: #F9C2CA;
  --brand-300: #FB93A2;
  --brand-400: #F95C74;
  --brand-500: #F82645;
  --brand-600: #ED082A;
  --brand-700: #C50723;
  --brand-800: #af061f;
  --brand-900: #720918;
  --brand-950: #47050F;
  --brand: #af061f;
  --brand-ink: #ffffff;
}

Colors that work with #af061f

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#EDC0C6
Hairlines and dividers
Muted text#9B4B57
Captions on the surface
Accent#02CA7A
Second voice, not a rival
Dark variant#7B0416
Hover, pressed, headers
Light variant#FEE6EA
Selected rows, tints
Dark surface#241416
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 #af061f

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#06AF96
Analogous left#AF0674
Analogous right#AF4106
Split-complement 1#06AF41
Split-complement 2#0674AF
Triadic 1#1FAF06
Triadic 2#061FAF
Tetradic#74AF06

RGB percentages

Red68.6%
Green2.4%
Blue12.2%

CMYK percentages

Cyan0.0%
Magenta96.6%
Yellow82.3%
Key (black)31.4%

Color previews

#af061f text on a black background

contrast 2.87:1

Card sample

#af061f text on a white background

contrast 7.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af061f

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.

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

#af061f, answered

What color is #af061f?

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

What is the RGB value of #af061f?

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

Is #af061f a light or a dark color?

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

Should I use black or white text on #af061f?

White. It scores 7.32:1 against #af061f, versus 2.87:1 for black — AAA at any size.

What is the complementary color of #af061f?

#06AF96 sits directly opposite on the wheel. Softer options are the split-complements #06AF41 and #0674AF, which give the same contrast with far less vibration.

What colors go well with #af061f?

For interface work: #FAF4F5 as the surface, #EDC0C6 for borders, #9B4B57 for secondary text, #02CA7A as an accent and #7B0416 for hover and pressed states. For a palette, the analogous pair #AF0674 and #AF4106 stays calm, while #06AF96 is the loudest partner.

What is #af061f in CMYK for printing?

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

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

Work with #af061f in the Color Lab