Skip to content

#af082b

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

RGB
175, 8, 43
HSL
347°, 91%, 36%
CMYK
0, 95, 75, 31
Luminance
0.0946

At a glance

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

Hex
#af082b
Hue
347°
red
Saturation
91%
electric
Lightness
36%
dark
Brightness
69%
HSV value
Perceived
38%
weighted brightness
Luminance
0.0946
WCAG relative
Temperature
Warm
24/100 cool
Color family
Red
Tone
Electric
Best ink
White
7.26:1
Closest name
Brown
ΔE2000 4.1
Where it sits
Hue347° of 360°
Saturation91%
Lightness36%
Temperature
Warm ← → Cool24% 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#af082b
RGBrgb(175, 8, 43)
HSLhsl(347, 91%, 36%)
CMYKcmyk(0%, 95%, 75%, 31%)
LABlab(36.9 60.4 29.7)
LCHlch(36.9 67.3 26.2)
OKLCHoklch(0.479 0.189 20.7)
Decimal11470891
Display P3color(display-p3 0.686 0.031 0.169)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af082b on white: 7.26:1
AA ✓ pass · AA-large · AAA
Aa
#af082b on black: 2.89:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #47412A
deuteranopia · #6D6225
tritanopia · #C1001B

Color scale — 50 to 950

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

#FDF2F4
#FBE4E9
#F9C3CE
#FA94A9
#F85E7E
#F52853
#EA0B3A
#C30930
#af082b
#710A1F
#460614
Base = 800Lightest = 50 · #FDF2F4Darkest = 950 · #460614
:root {
  --brand-50: #FDF2F4;
  --brand-100: #FBE4E9;
  --brand-200: #F9C3CE;
  --brand-300: #FA94A9;
  --brand-400: #F85E7E;
  --brand-500: #F52853;
  --brand-600: #EA0B3A;
  --brand-700: #C30930;
  --brand-800: #af082b;
  --brand-900: #710A1F;
  --brand-950: #460614;
  --brand: #af082b;
  --brand-ink: #ffffff;
}

Colors that work with #af082b

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#EDC0C9
Hairlines and dividers
Muted text#9B4B5B
Captions on the surface
Accent#04C86E
Second voice, not a rival
Dark variant#7A061E
Hover, pressed, headers
Light variant#FEE7EB
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 #af082b

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#08AF8C
Analogous left#AF087F
Analogous right#AF3808
Split-complement 1#08AF38
Split-complement 2#087FAF
Triadic 1#2BAF08
Triadic 2#082BAF
Tetradic#7FAF08

RGB percentages

Red68.6%
Green3.1%
Blue16.9%

CMYK percentages

Cyan0.0%
Magenta95.4%
Yellow75.4%
Key (black)31.4%

Color previews

#af082b text on a black background

contrast 2.89:1

Card sample

#af082b text on a white background

contrast 7.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af082b

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.

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

#af082b, answered

What color is #af082b?

#af082b is a dark electric red, closest to Brown (ΔE2000 4.1). It sits at 347° on the hue wheel with 91% saturation and 36% lightness, which reads as warm.

What is the RGB value of #af082b?

rgb(175, 8, 43) — 175 red, 8 green and 43 blue out of 255, or 68.6% / 3.1% / 16.9% by channel.

Is #af082b a light or a dark color?

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

Should I use black or white text on #af082b?

White. It scores 7.26:1 against #af082b, versus 2.89:1 for black — AAA at any size.

What is the complementary color of #af082b?

#08AF8C sits directly opposite on the wheel. Softer options are the split-complements #08AF38 and #087FAF, which give the same contrast with far less vibration.

What colors go well with #af082b?

For interface work: #FAF4F6 as the surface, #EDC0C9 for borders, #9B4B5B for secondary text, #04C86E as an accent and #7A061E for hover and pressed states. For a palette, the analogous pair #AF087F and #AF3808 stays calm, while #08AF8C is the loudest partner.

What is #af082b in CMYK for printing?

cmyk(0%, 95%, 75%, 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 #af082b warm or cool?

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

Work with #af082b in the Color Lab