Skip to content

#af2d02

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

RGB
175, 45, 2
HSL
15°, 98%, 35%
CMYK
0, 74, 99, 31
Luminance
0.1100

At a glance

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

Hex
#af2d02
Hue
15°
red
Saturation
98%
electric
Lightness
35%
dark
Brightness
69%
HSV value
Perceived
40%
weighted brightness
Luminance
0.1100
WCAG relative
Temperature
Warm
8/100 cool
Color family
Red
Tone
Electric
Best ink
White
6.56:1
Closest name
Firebrick
ΔE2000 8
Where it sits
Hue15° of 360°
Saturation98%
Lightness35%
Temperature
Warm ← → Cool8% 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#af2d02
RGBrgb(175, 45, 2)
HSLhsl(15, 98%, 35%)
CMYKcmyk(0%, 74%, 99%, 31%)
LABlab(39.6 50.9 51.3)
LCHlch(39.6 72.3 45.2)
OKLCHoklch(0.498 0.172 35.3)
Decimal11480322
Display P3color(display-p3 0.686 0.176 0.008)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2d02 on white: 6.56:1
AA ✓ pass · AA-large · AAA
Aa
#af2d02 on black: 3.20:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #564B00
deuteranopia · #766800
tritanopia · #C10027

Color scale — 50 to 950

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

#FDF4F1
#FCEAE4
#FBCFC1
#FEAB90
#FD8159
#FC5821
#F23E03
#CA3402
#af2d02
#742206
#491504
Base = 800Lightest = 50 · #FDF4F1Darkest = 950 · #491504
:root {
  --brand-50: #FDF4F1;
  --brand-100: #FCEAE4;
  --brand-200: #FBCFC1;
  --brand-300: #FEAB90;
  --brand-400: #FD8159;
  --brand-500: #FC5821;
  --brand-600: #F23E03;
  --brand-700: #CA3402;
  --brand-800: #af2d02;
  --brand-900: #742206;
  --brand-950: #491504;
  --brand: #af2d02;
  --brand-ink: #ffffff;
}

Colors that work with #af2d02

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#FAF6F4
Tinted page background
Border#EDCBC0
Hairlines and dividers
Muted text#9B5F4B
Captions on the surface
Accent#00CCCC
Second voice, not a rival
Dark variant#7E2001
Hover, pressed, headers
Light variant#FFECE6
Selected rows, tints
Dark surface#241814
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 #af2d02

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#0284AF
Analogous left#AF022E
Analogous right#AF8302
Split-complement 1#02AF83
Split-complement 2#022EAF
Triadic 1#02AF2D
Triadic 2#2D02AF
Tetradic#2EAF02

RGB percentages

Red68.6%
Green17.6%
Blue0.8%

CMYK percentages

Cyan0.0%
Magenta74.3%
Yellow98.9%
Key (black)31.4%

Color previews

#af2d02 text on a black background

contrast 3.20:1

Card sample

#af2d02 text on a white background

contrast 6.56:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2d02

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.

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

#af2d02, answered

What color is #af2d02?

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

What is the RGB value of #af2d02?

rgb(175, 45, 2) — 175 red, 45 green and 2 blue out of 255, or 68.6% / 17.6% / 0.8% by channel.

Is #af2d02 a light or a dark color?

It is a dark color. Relative luminance is 0.1100 and perceived brightness is 40%, so white text on it reaches 6.56:1.

Should I use black or white text on #af2d02?

White. It scores 6.56:1 against #af2d02, versus 3.20:1 for black — AA at any size.

What is the complementary color of #af2d02?

#0284AF sits directly opposite on the wheel. Softer options are the split-complements #02AF83 and #022EAF, which give the same contrast with far less vibration.

What colors go well with #af2d02?

For interface work: #FAF6F4 as the surface, #EDCBC0 for borders, #9B5F4B for secondary text, #00CCCC as an accent and #7E2001 for hover and pressed states. For a palette, the analogous pair #AF022E and #AF8302 stays calm, while #0284AF is the loudest partner.

What is #af2d02 in CMYK for printing?

cmyk(0%, 74%, 99%, 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 #af2d02 warm or cool?

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

Work with #af2d02 in the Color Lab