Skip to content

#af112d

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

RGB
175, 17, 45
HSL
349°, 82%, 38%
CMYK
0, 90, 74, 31
Luminance
0.0970

At a glance

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

Hex
#af112d
Hue
349°
red
Saturation
82%
electric
Lightness
38%
dark
Brightness
69%
HSV value
Perceived
38%
weighted brightness
Luminance
0.0970
WCAG relative
Temperature
Warm
23/100 cool
Color family
Red
Tone
Electric
Best ink
White
7.14:1
Closest name
Brown
ΔE2000 3.9
Where it sits
Hue349° of 360°
Saturation82%
Lightness38%
Temperature
Warm ← → Cool23% 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#af112d
RGBrgb(175, 17, 45)
HSLhsl(349, 82%, 38%)
CMYKcmyk(0%, 90%, 74%, 31%)
LABlab(37.3 59.2 29.0)
LCHlch(37.3 65.9 26.1)
OKLCHoklch(0.483 0.186 20.7)
Decimal11473197
Display P3color(display-p3 0.686 0.067 0.176)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af112d on white: 7.14:1
AA ✓ pass · AA-large · AAA
Aa
#af112d on black: 2.94:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #49432C
deuteranopia · #6E6327
tritanopia · #C1001F

Color scale — 50 to 950

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

#FCF2F4
#FAE6E9
#F6C6CE
#F599A9
#F0667E
#EB3253
#DF1639
#af112d
#950E26
#6C0F1F
#430914
Base = 700Lightest = 50 · #FCF2F4Darkest = 950 · #430914
:root {
  --brand-50: #FCF2F4;
  --brand-100: #FAE6E9;
  --brand-200: #F6C6CE;
  --brand-300: #F599A9;
  --brand-400: #F0667E;
  --brand-500: #EB3253;
  --brand-600: #DF1639;
  --brand-700: #af112d;
  --brand-800: #950E26;
  --brand-900: #6C0F1F;
  --brand-950: #430914;
  --brand: #af112d;
  --brand-ink: #ffffff;
}

Colors that work with #af112d

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#EDC0C8
Hairlines and dividers
Muted text#9B4B59
Captions on the surface
Accent#0EBE73
Second voice, not a rival
Dark variant#740B1E
Hover, pressed, headers
Light variant#FDE8EB
Selected rows, tints
Dark surface#241417
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 #af112d

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#11AF93
Analogous left#AF117C
Analogous right#AF4411
Split-complement 1#11AF44
Split-complement 2#117CAF
Triadic 1#2DAF11
Triadic 2#112DAF
Tetradic#7CAF11

RGB percentages

Red68.6%
Green6.7%
Blue17.6%

CMYK percentages

Cyan0.0%
Magenta90.3%
Yellow74.3%
Key (black)31.4%

Color previews

#af112d text on a black background

contrast 2.94:1

Card sample

#af112d text on a white background

contrast 7.14:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af112d

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.

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

#af112d, answered

What color is #af112d?

#af112d is a dark electric red, closest to Brown (ΔE2000 3.9). It sits at 349° on the hue wheel with 82% saturation and 38% lightness, which reads as warm.

What is the RGB value of #af112d?

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

Is #af112d a light or a dark color?

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

Should I use black or white text on #af112d?

White. It scores 7.14:1 against #af112d, versus 2.94:1 for black — AAA at any size.

What is the complementary color of #af112d?

#11AF93 sits directly opposite on the wheel. Softer options are the split-complements #11AF44 and #117CAF, which give the same contrast with far less vibration.

What colors go well with #af112d?

For interface work: #FAF4F5 as the surface, #EDC0C8 for borders, #9B4B59 for secondary text, #0EBE73 as an accent and #740B1E for hover and pressed states. For a palette, the analogous pair #AF117C and #AF4411 stays calm, while #11AF93 is the loudest partner.

What is #af112d in CMYK for printing?

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

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

Work with #af112d in the Color Lab