Skip to content

#af073d

a dark, electric magenta / pink · warm · closest name: Brown

RGB
175, 7, 61
HSL
341°, 92%, 36%
CMYK
0, 96, 65, 31
Luminance
0.0960

At a glance

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

Hex
#af073d
Hue
341°
magenta / pink
Saturation
92%
electric
Lightness
36%
dark
Brightness
69%
HSV value
Perceived
38%
weighted brightness
Luminance
0.0960
WCAG relative
Temperature
Warm
27/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
7.19:1
Closest name
Brown
ΔE2000 8.8
Where it sits
Hue341° of 360°
Saturation92%
Lightness36%
Temperature
Warm ← → Cool27% 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#af073d
RGBrgb(175, 7, 61)
HSLhsl(341, 92%, 36%)
CMYKcmyk(0%, 96%, 65%, 31%)
LABlab(37.1 61.3 18.6)
LCHlch(37.1 64.1 16.9)
OKLCHoklch(0.482 0.190 13.7)
Decimal11470653
Display P3color(display-p3 0.686 0.027 0.239)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af073d on white: 7.19:1
AA ✓ pass · AA-large · AAA
Aa
#af073d on black: 2.92:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #44433D
deuteranopia · #6C6339
tritanopia · #C00024

Color scale — 50 to 950

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

#FDF2F5
#FBE4EC
#F9C3D4
#FB93B4
#F95D8F
#F6276A
#EB0952
#C40844
#af073d
#71092B
#47061B
Base = 800Lightest = 50 · #FDF2F5Darkest = 950 · #47061B
:root {
  --brand-50: #FDF2F5;
  --brand-100: #FBE4EC;
  --brand-200: #F9C3D4;
  --brand-300: #FB93B4;
  --brand-400: #F95D8F;
  --brand-500: #F6276A;
  --brand-600: #EB0952;
  --brand-700: #C40844;
  --brand-800: #af073d;
  --brand-900: #71092B;
  --brand-950: #47061B;
  --brand: #af073d;
  --brand-ink: #ffffff;
}

Colors that work with #af073d

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#EDC0CE
Hairlines and dividers
Muted text#9B4B64
Captions on the surface
Accent#03C958
Second voice, not a rival
Dark variant#7B052B
Hover, pressed, headers
Light variant#FEE6EE
Selected rows, tints
Dark surface#241419
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 #af073d

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#07AF79
Analogous left#AF0791
Analogous right#AF2507
Split-complement 1#07AF25
Split-complement 2#0791AF
Triadic 1#3DAF07
Triadic 2#073DAF
Tetradic#91AF07

RGB percentages

Red68.6%
Green2.7%
Blue23.9%

CMYK percentages

Cyan0.0%
Magenta96.0%
Yellow65.1%
Key (black)31.4%

Color previews

#af073d text on a black background

contrast 2.92:1

Card sample

#af073d text on a white background

contrast 7.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af073d

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.

#af073d in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
BeautyFashionLifestyleYouth brands
Common UI roles
ButtonsLinksFocus statesCharts
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#af073d, answered

What color is #af073d?

#af073d is a dark electric magenta / pink, closest to Brown (ΔE2000 8.8). It sits at 341° on the hue wheel with 92% saturation and 36% lightness, which reads as warm.

What is the RGB value of #af073d?

rgb(175, 7, 61) — 175 red, 7 green and 61 blue out of 255, or 68.6% / 2.7% / 23.9% by channel.

Is #af073d a light or a dark color?

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

Should I use black or white text on #af073d?

White. It scores 7.19:1 against #af073d, versus 2.92:1 for black — AAA at any size.

What is the complementary color of #af073d?

#07AF79 sits directly opposite on the wheel. Softer options are the split-complements #07AF25 and #0791AF, which give the same contrast with far less vibration.

What colors go well with #af073d?

For interface work: #FAF4F6 as the surface, #EDC0CE for borders, #9B4B64 for secondary text, #03C958 as an accent and #7B052B for hover and pressed states. For a palette, the analogous pair #AF0791 and #AF2507 stays calm, while #07AF79 is the loudest partner.

What is #af073d in CMYK for printing?

cmyk(0%, 96%, 65%, 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 #af073d warm or cool?

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

Work with #af073d in the Color Lab