Skip to content

#af331c

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

RGB
175, 51, 28
HSL
9°, 72%, 40%
CMYK
0, 71, 84, 31
Luminance
0.1157

At a glance

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

Hex
#af331c
Hue
red
Saturation
72%
vivid
Lightness
40%
dark
Brightness
69%
HSV value
Perceived
41%
weighted brightness
Luminance
0.1157
WCAG relative
Temperature
Warm
11/100 cool
Color family
Red
Tone
Vivid
Best ink
White
6.34:1
Closest name
Firebrick
ΔE2000 4.6
Where it sits
Hue9° of 360°
Saturation72%
Lightness40%
Temperature
Warm ← → Cool11% 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#af331c
RGBrgb(175, 51, 28)
HSLhsl(9, 72%, 40%)
CMYKcmyk(0%, 71%, 84%, 31%)
LABlab(40.5 49.1 42.0)
LCHlch(40.5 64.6 40.5)
OKLCHoklch(0.506 0.164 32.7)
Decimal11481884
Display P3color(display-p3 0.686 0.200 0.110)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af331c on white: 6.34:1
AA ✓ pass · AA-large · AAA
Aa
#af331c on black: 3.31:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #584E18
deuteranopia · #776A15
tritanopia · #C1002F

Color scale — 50 to 950

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

#FCF4F3
#F8EAE7
#F3CFC9
#F0AB9E
#E8816E
#E0573E
#D33E22
#af331c
#8D2917
#662114
#40150D
Base = 700Lightest = 50 · #FCF4F3Darkest = 950 · #40150D
:root {
  --brand-50: #FCF4F3;
  --brand-100: #F8EAE7;
  --brand-200: #F3CFC9;
  --brand-300: #F0AB9E;
  --brand-400: #E8816E;
  --brand-500: #E0573E;
  --brand-600: #D33E22;
  --brand-700: #af331c;
  --brand-800: #8D2917;
  --brand-900: #662114;
  --brand-950: #40150D;
  --brand: #af331c;
  --brand-ink: #ffffff;
}

Colors that work with #af331c

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#EDC7C0
Hairlines and dividers
Muted text#9B574B
Captions on the surface
Accent#18B4A6
Second voice, not a rival
Dark variant#6E2012
Hover, pressed, headers
Light variant#FBECE9
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 #af331c

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#1C98AF
Analogous left#AF1C4E
Analogous right#AF7D1C
Split-complement 1#1CAF7D
Split-complement 2#1C4EAF
Triadic 1#1CAF33
Triadic 2#331CAF
Tetradic#4EAF1C

RGB percentages

Red68.6%
Green20.0%
Blue11.0%

CMYK percentages

Cyan0.0%
Magenta70.9%
Yellow84.0%
Key (black)31.4%

Color previews

#af331c text on a black background

contrast 3.31:1

Card sample

#af331c text on a white background

contrast 6.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af331c

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.

#af331c 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

Converts to four-color process without much drama. Proof it anyway.

#af331c, answered

What color is #af331c?

#af331c is a dark vivid red, closest to Firebrick (ΔE2000 4.6). It sits at 9° on the hue wheel with 72% saturation and 40% lightness, which reads as warm.

What is the RGB value of #af331c?

rgb(175, 51, 28) — 175 red, 51 green and 28 blue out of 255, or 68.6% / 20% / 11% by channel.

Is #af331c a light or a dark color?

It is a dark color. Relative luminance is 0.1157 and perceived brightness is 41%, so white text on it reaches 6.34:1.

Should I use black or white text on #af331c?

White. It scores 6.34:1 against #af331c, versus 3.31:1 for black — AA at any size.

What is the complementary color of #af331c?

#1C98AF sits directly opposite on the wheel. Softer options are the split-complements #1CAF7D and #1C4EAF, which give the same contrast with far less vibration.

What colors go well with #af331c?

For interface work: #FAF5F4 as the surface, #EDC7C0 for borders, #9B574B for secondary text, #18B4A6 as an accent and #6E2012 for hover and pressed states. For a palette, the analogous pair #AF1C4E and #AF7D1C stays calm, while #1C98AF is the loudest partner.

What is #af331c in CMYK for printing?

cmyk(0%, 71%, 84%, 31%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #af331c warm or cool?

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

Work with #af331c in the Color Lab