Skip to content

#af0f50

a dark, electric magenta / pink · warm · closest name: Medium Violet Red

RGB
175, 15, 80
HSL
336°, 84%, 37%
CMYK
0, 91, 54, 31
Luminance
0.1003

At a glance

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

Hex
#af0f50
Hue
336°
magenta / pink
Saturation
84%
electric
Lightness
37%
dark
Brightness
69%
HSV value
Perceived
39%
weighted brightness
Luminance
0.1003
WCAG relative
Temperature
Warm
30/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
6.98:1
Closest name
Medium Violet Red
ΔE2000 11.5
Where it sits
Hue336° of 360°
Saturation84%
Lightness37%
Temperature
Warm ← → Cool30% 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#af0f50
RGBrgb(175, 15, 80)
HSLhsl(336, 84%, 37%)
CMYKcmyk(0%, 91%, 54%, 31%)
LABlab(37.9 61.5 7.4)
LCHlch(37.9 62.0 6.9)
OKLCHoklch(0.489 0.189 5.8)
Decimal11472720
Display P3color(display-p3 0.686 0.059 0.314)

Copy-ready code

/* CSS */
color: #af0f50;
background-color: #af0f50;
/* Tailwind (arbitrary) */
class="text-[#af0f50] bg-[#af0f50]"
/* SCSS */
$brand: #af0f50;
/* SwiftUI */
Color(red: 0.686, green: 0.059, blue: 0.314)
/* Android */
Color.parseColor("#af0f50")
/* Flutter */
Color(0xFFAF0F50)
/* Python / OpenCV (BGR) */
(80, 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 #af0f50 · 6.98:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 6.98:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.01:1
AA fail · AA large pass · AAA fail
Reading the other direction: #af0f50 as text scores 6.98:1 on white and 3.01:1 on black.

Accessibility — WCAG contrast

Aa
#af0f50 on white: 6.98:1
AA ✓ pass · AA-large · AAA
Aa
#af0f50 on black: 3.01:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #424651
deuteranopia · #6A644C
tritanopia · #BF0030

Color scale — 50 to 950

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

#FCF2F6
#FAE6EE
#F6C5D9
#F698BE
#F2649E
#ED307D
#E11367
#af0f50
#960D45
#6D0E34
#440921
Base = 700Lightest = 50 · #FCF2F6Darkest = 950 · #440921
:root {
  --brand-50: #FCF2F6;
  --brand-100: #FAE6EE;
  --brand-200: #F6C5D9;
  --brand-300: #F698BE;
  --brand-400: #F2649E;
  --brand-500: #ED307D;
  --brand-600: #E11367;
  --brand-700: #af0f50;
  --brand-800: #960D45;
  --brand-900: #6D0E34;
  --brand-950: #440921;
  --brand: #af0f50;
  --brand-ink: #ffffff;
}

Colors that work with #af0f50

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#FAF4F7
Tinted page background
Border#EDC0D2
Hairlines and dividers
Muted text#9B4B6B
Captions on the surface
Accent#0CC04A
Second voice, not a rival
Dark variant#750A36
Hover, pressed, headers
Light variant#FDE8F0
Selected rows, tints
Dark surface#24141A
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 #af0f50

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
  • 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#0FAF6E
Analogous left#AF0FA0
Analogous right#AF1E0F
Split-complement 1#0FAF1E
Split-complement 2#0FA0AF
Triadic 1#50AF0F
Triadic 2#0F50AF
Tetradic#A0AF0F

RGB percentages

Red68.6%
Green5.9%
Blue31.4%

CMYK percentages

Cyan0.0%
Magenta91.4%
Yellow54.3%
Key (black)31.4%

Color previews

#af0f50 text on a black background

contrast 3.01:1

Card sample

#af0f50 text on a white background

contrast 6.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af0f50

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.

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

#af0f50, answered

What color is #af0f50?

#af0f50 is a dark electric magenta / pink, closest to Medium Violet Red (ΔE2000 11.5). It sits at 336° on the hue wheel with 84% saturation and 37% lightness, which reads as warm.

What is the RGB value of #af0f50?

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

Is #af0f50 a light or a dark color?

It is a dark color. Relative luminance is 0.1003 and perceived brightness is 39%, so white text on it reaches 6.98:1.

Should I use black or white text on #af0f50?

White. It scores 6.98:1 against #af0f50, versus 3.01:1 for black — AA at any size.

What is the complementary color of #af0f50?

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

What colors go well with #af0f50?

For interface work: #FAF4F7 as the surface, #EDC0D2 for borders, #9B4B6B for secondary text, #0CC04A as an accent and #750A36 for hover and pressed states. For a palette, the analogous pair #AF0FA0 and #AF1E0F stays calm, while #0FAF6E is the loudest partner.

What is #af0f50 in CMYK for printing?

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

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

Work with #af0f50 in the Color Lab