Skip to content

#af0c22

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

RGB
175, 12, 34
HSL
352°, 87%, 37%
CMYK
0, 93, 81, 31
Luminance
0.0949

At a glance

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

Hex
#af0c22
Hue
352°
red
Saturation
87%
electric
Lightness
37%
dark
Brightness
69%
HSV value
Perceived
38%
weighted brightness
Luminance
0.0949
WCAG relative
Temperature
Warm
21/100 cool
Color family
Red
Tone
Electric
Best ink
White
7.25:1
Closest name
Brown
ΔE2000 2.9
Where it sits
Hue352° of 360°
Saturation87%
Lightness37%
Temperature
Warm ← → Cool21% 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#af0c22
RGBrgb(175, 12, 34)
HSLhsl(352, 87%, 37%)
CMYKcmyk(0%, 93%, 81%, 31%)
LABlab(36.9 59.6 35.2)
LCHlch(36.9 69.2 30.6)
OKLCHoklch(0.479 0.188 23.8)
Decimal11471906
Display P3color(display-p3 0.686 0.047 0.133)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af0c22 on white: 7.25:1
AA ✓ pass · AA-large · AAA
Aa
#af0c22 on black: 2.90:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #494121
deuteranopia · #6E621A
tritanopia · #C10019

Color scale — 50 to 950

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

#FDF2F3
#FAE5E8
#F7C4CB
#F896A3
#F46175
#F12D47
#E5102C
#af0c22
#990A1E
#6E0C19
#450810
Base = 700Lightest = 50 · #FDF2F3Darkest = 950 · #450810
:root {
  --brand-50: #FDF2F3;
  --brand-100: #FAE5E8;
  --brand-200: #F7C4CB;
  --brand-300: #F896A3;
  --brand-400: #F46175;
  --brand-500: #F12D47;
  --brand-600: #E5102C;
  --brand-700: #af0c22;
  --brand-800: #990A1E;
  --brand-900: #6E0C19;
  --brand-950: #450810;
  --brand: #af0c22;
  --brand-ink: #ffffff;
}

Colors that work with #af0c22

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#9B4B55
Captions on the surface
Accent#09C37B
Second voice, not a rival
Dark variant#770817
Hover, pressed, headers
Light variant#FDE7EA
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 #af0c22

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#0CAF99
Analogous left#AF0C74
Analogous right#AF480C
Split-complement 1#0CAF48
Split-complement 2#0C74AF
Triadic 1#22AF0C
Triadic 2#0C22AF
Tetradic#74AF0C

RGB percentages

Red68.6%
Green4.7%
Blue13.3%

CMYK percentages

Cyan0.0%
Magenta93.1%
Yellow80.6%
Key (black)31.4%

Color previews

#af0c22 text on a black background

contrast 2.90:1

Card sample

#af0c22 text on a white background

contrast 7.25:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af0c22

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.

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

#af0c22, answered

What color is #af0c22?

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

What is the RGB value of #af0c22?

rgb(175, 12, 34) — 175 red, 12 green and 34 blue out of 255, or 68.6% / 4.7% / 13.3% by channel.

Is #af0c22 a light or a dark color?

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

Should I use black or white text on #af0c22?

White. It scores 7.25:1 against #af0c22, versus 2.90:1 for black — AAA at any size.

What is the complementary color of #af0c22?

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

What colors go well with #af0c22?

For interface work: #FAF4F5 as the surface, #EDC0C6 for borders, #9B4B55 for secondary text, #09C37B as an accent and #770817 for hover and pressed states. For a palette, the analogous pair #AF0C74 and #AF480C stays calm, while #0CAF99 is the loudest partner.

What is #af0c22 in CMYK for printing?

cmyk(0%, 93%, 81%, 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 #af0c22 warm or cool?

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

Work with #af0c22 in the Color Lab