Skip to content

#af0f36

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

RGB
175, 15, 54
HSL
345°, 84%, 37%
CMYK
0, 91, 69, 31
Luminance
0.0972

At a glance

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

Hex
#af0f36
Hue
345°
red
Saturation
84%
electric
Lightness
37%
dark
Brightness
69%
HSV value
Perceived
38%
weighted brightness
Luminance
0.0972
WCAG relative
Temperature
Warm
25/100 cool
Color family
Red
Tone
Electric
Best ink
White
7.13:1
Closest name
Brown
ΔE2000 6.3
Where it sits
Hue345° of 360°
Saturation84%
Lightness37%
Temperature
Warm ← → Cool25% 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#af0f36
RGBrgb(175, 15, 54)
HSLhsl(345, 84%, 37%)
CMYKcmyk(0%, 91%, 69%, 31%)
LABlab(37.3 59.9 23.4)
LCHlch(37.3 64.3 21.3)
OKLCHoklch(0.483 0.186 17.1)
Decimal11472694
Display P3color(display-p3 0.686 0.059 0.212)

Copy-ready code

/* CSS */
color: #af0f36;
background-color: #af0f36;
/* Tailwind (arbitrary) */
class="text-[#af0f36] bg-[#af0f36]"
/* SCSS */
$brand: #af0f36;
/* SwiftUI */
Color(red: 0.686, green: 0.059, blue: 0.212)
/* Android */
Color.parseColor("#af0f36")
/* Flutter */
Color(0xFFAF0F36)
/* Python / OpenCV (BGR) */
(54, 15, 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 #af0f36 · 7.13:1
Use #ffffffAAA at every size.
Aa
White text · 7.13: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: #af0f36 as text scores 7.13:1 on white and 2.94:1 on black.

Accessibility — WCAG contrast

Aa
#af0f36 on white: 7.13:1
AA ✓ pass · AA-large · AAA
Aa
#af0f36 on black: 2.94:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #474336
deuteranopia · #6D6331
tritanopia · #C10023

Color scale — 50 to 950

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

#FCF2F5
#FAE6EB
#F6C5D1
#F698AF
#F26486
#ED305E
#E11345
#af0f36
#960D2E
#6D0E25
#440917
Base = 700Lightest = 50 · #FCF2F5Darkest = 950 · #440917
:root {
  --brand-50: #FCF2F5;
  --brand-100: #FAE6EB;
  --brand-200: #F6C5D1;
  --brand-300: #F698AF;
  --brand-400: #F26486;
  --brand-500: #ED305E;
  --brand-600: #E11345;
  --brand-700: #af0f36;
  --brand-800: #960D2E;
  --brand-900: #6D0E25;
  --brand-950: #440917;
  --brand: #af0f36;
  --brand-ink: #ffffff;
}

Colors that work with #af0f36

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#FAF4F6
Tinted page background
Border#EDC0CB
Hairlines and dividers
Muted text#9B4B5E
Captions on the surface
Accent#0CC067
Second voice, not a rival
Dark variant#750A24
Hover, pressed, headers
Light variant#FDE8ED
Selected rows, tints
Dark surface#241418
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 #af0f36

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#0FAF88
Analogous left#AF0F86
Analogous right#AF380F
Split-complement 1#0FAF38
Split-complement 2#0F86AF
Triadic 1#36AF0F
Triadic 2#0F36AF
Tetradic#86AF0F

RGB percentages

Red68.6%
Green5.9%
Blue21.2%

CMYK percentages

Cyan0.0%
Magenta91.4%
Yellow69.1%
Key (black)31.4%

Color previews

#af0f36 text on a black background

contrast 2.94:1

Card sample

#af0f36 text on a white background

contrast 7.13:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af0f36

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.

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

#af0f36, answered

What color is #af0f36?

#af0f36 is a dark electric red, closest to Brown (ΔE2000 6.3). It sits at 345° on the hue wheel with 84% saturation and 37% lightness, which reads as warm.

What is the RGB value of #af0f36?

rgb(175, 15, 54) — 175 red, 15 green and 54 blue out of 255, or 68.6% / 5.9% / 21.2% by channel.

Is #af0f36 a light or a dark color?

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

Should I use black or white text on #af0f36?

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

What is the complementary color of #af0f36?

#0FAF88 sits directly opposite on the wheel. Softer options are the split-complements #0FAF38 and #0F86AF, which give the same contrast with far less vibration.

What colors go well with #af0f36?

For interface work: #FAF4F6 as the surface, #EDC0CB for borders, #9B4B5E for secondary text, #0CC067 as an accent and #750A24 for hover and pressed states. For a palette, the analogous pair #AF0F86 and #AF380F stays calm, while #0FAF88 is the loudest partner.

What is #af0f36 in CMYK for printing?

cmyk(0%, 91%, 69%, 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 #af0f36 warm or cool?

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

Work with #af0f36 in the Color Lab