Skip to content

#af002f

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

RGB
175, 0, 47
HSL
344°, 100%, 34%
CMYK
0, 100, 73, 31
Luminance
0.0932

At a glance

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

Hex
#af002f
Hue
344°
magenta / pink
Saturation
100%
electric
Lightness
34%
dark
Brightness
69%
HSV value
Perceived
38%
weighted brightness
Luminance
0.0932
WCAG relative
Temperature
Warm
26/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
7.33:1
Closest name
Brown
ΔE2000 5.4
Where it sits
Hue344° of 360°
Saturation100%
Lightness34%
Temperature
Warm ← → Cool26% 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#af002f
RGBrgb(175, 0, 47)
HSLhsl(344, 100%, 34%)
CMYKcmyk(0%, 100%, 73%, 31%)
LABlab(36.6 61.5 26.9)
LCHlch(36.6 67.1 23.6)
OKLCHoklch(0.478 0.192 18.7)
Decimal11468847
Display P3color(display-p3 0.686 0.000 0.184)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af002f on white: 7.33:1
AA ✓ pass · AA-large · AAA
Aa
#af002f on black: 2.86:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #45402F
deuteranopia · #6C6229
tritanopia · #C1001B

Color scale — 50 to 950

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

#FEF1F4
#FCE3EA
#FCC0D0
#FF8FAD
#FF5784
#FF1F5B
#F50042
#CC0037
#af002f
#760523
#490316
Base = 800Lightest = 50 · #FEF1F4Darkest = 950 · #490316
:root {
  --brand-50: #FEF1F4;
  --brand-100: #FCE3EA;
  --brand-200: #FCC0D0;
  --brand-300: #FF8FAD;
  --brand-400: #FF5784;
  --brand-500: #FF1F5B;
  --brand-600: #F50042;
  --brand-700: #CC0037;
  --brand-800: #af002f;
  --brand-900: #760523;
  --brand-950: #490316;
  --brand: #af002f;
  --brand-ink: #ffffff;
}

Colors that work with #af002f

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#EDC0CC
Hairlines and dividers
Muted text#9B4B60
Captions on the surface
Accent#00CC62
Second voice, not a rival
Dark variant#800022
Hover, pressed, headers
Light variant#FFE5EC
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 #af002f

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#00AF80
Analogous left#AF0086
Analogous right#AF2900
Split-complement 1#00AF29
Split-complement 2#0086AF
Triadic 1#2FAF00
Triadic 2#002FAF
Tetradic#86AF00

RGB percentages

Red68.6%
Green0.0%
Blue18.4%

CMYK percentages

Cyan0.0%
Magenta100.0%
Yellow73.1%
Key (black)31.4%

Color previews

#af002f text on a black background

contrast 2.86:1

Card sample

#af002f text on a white background

contrast 7.33:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af002f

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.

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

#af002f, answered

What color is #af002f?

#af002f is a dark electric magenta / pink, closest to Brown (ΔE2000 5.4). It sits at 344° on the hue wheel with 100% saturation and 34% lightness, which reads as warm.

What is the RGB value of #af002f?

rgb(175, 0, 47) — 175 red, 0 green and 47 blue out of 255, or 68.6% / 0% / 18.4% by channel.

Is #af002f a light or a dark color?

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

Should I use black or white text on #af002f?

White. It scores 7.33:1 against #af002f, versus 2.86:1 for black — AAA at any size.

What is the complementary color of #af002f?

#00AF80 sits directly opposite on the wheel. Softer options are the split-complements #00AF29 and #0086AF, which give the same contrast with far less vibration.

What colors go well with #af002f?

For interface work: #FAF4F6 as the surface, #EDC0CC for borders, #9B4B60 for secondary text, #00CC62 as an accent and #800022 for hover and pressed states. For a palette, the analogous pair #AF0086 and #AF2900 stays calm, while #00AF80 is the loudest partner.

What is #af002f in CMYK for printing?

cmyk(0%, 100%, 73%, 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 #af002f warm or cool?

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

Work with #af002f in the Color Lab