Skip to content

#af2b80

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

RGB
175, 43, 128
HSL
321°, 61%, 43%
CMYK
0, 75, 27, 31
Luminance
0.1240

At a glance

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

Hex
#af2b80
Hue
321°
magenta / pink
Saturation
61%
vivid
Lightness
43%
dark
Brightness
69%
HSV value
Perceived
43%
weighted brightness
Luminance
0.1240
WCAG relative
Temperature
Warm
38/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
6.03:1
Closest name
Medium Violet Red
ΔE2000 4.2
Where it sits
Hue321° of 360°
Saturation61%
Lightness43%
Temperature
Warm ← → Cool38% 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#af2b80
RGBrgb(175, 43, 128)
HSLhsl(321, 61%, 43%)
CMYKcmyk(0%, 75%, 27%, 31%)
LABlab(41.9 59.7 -17.0)
LCHlch(41.9 62.0 344.1)
OKLCHoklch(0.523 0.187 346.1)
Decimal11479936
Display P3color(display-p3 0.686 0.169 0.502)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2b80 on white: 6.03:1
AA ✓ pass · AA-large · AAA
Aa
#af2b80 on black: 3.48:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #3D5482
deuteranopia · #656B7D
tritanopia · #BB2752

Color scale — 50 to 950

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

#FBF4F8
#F7E8F2
#F0CCE3
#E9A5D1
#DE78B9
#D34BA2
#C53090
#af2b80
#832060
#5F1B47
#3C112C
Base = 700Lightest = 50 · #FBF4F8Darkest = 950 · #3C112C
:root {
  --brand-50: #FBF4F8;
  --brand-100: #F7E8F2;
  --brand-200: #F0CCE3;
  --brand-300: #E9A5D1;
  --brand-400: #DE78B9;
  --brand-500: #D34BA2;
  --brand-600: #C53090;
  --brand-700: #af2b80;
  --brand-800: #832060;
  --brand-900: #5F1B47;
  --brand-950: #3C112C;
  --brand: #af2b80;
  --brand-ink: #ffffff;
}

Colors that work with #af2b80

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#FAF4F8
Tinted page background
Border#EDC0DD
Hairlines and dividers
Muted text#9B4B7E
Captions on the surface
Accent#25A732
Second voice, not a rival
Dark variant#66194B
Hover, pressed, headers
Light variant#FAEBF4
Selected rows, tints
Dark surface#24141E
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 #af2b80

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#2BAF5A
Analogous left#9C2BAF
Analogous right#AF2B3E
Split-complement 1#3EAF2B
Split-complement 2#2BAF9C
Triadic 1#80AF2B
Triadic 2#2B80AF
Tetradic#AF9C2B

RGB percentages

Red68.6%
Green16.9%
Blue50.2%

CMYK percentages

Cyan0.0%
Magenta75.4%
Yellow26.9%
Key (black)31.4%

Color previews

#af2b80 text on a black background

contrast 3.48:1

Card sample

#af2b80 text on a white background

contrast 6.03:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2b80

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.

#af2b80 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

Converts to four-color process without much drama. Proof it anyway.

#af2b80, answered

What color is #af2b80?

#af2b80 is a dark vivid magenta / pink, closest to Medium Violet Red (ΔE2000 4.2). It sits at 321° on the hue wheel with 61% saturation and 43% lightness, which reads as warm.

What is the RGB value of #af2b80?

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

Is #af2b80 a light or a dark color?

It is a dark color. Relative luminance is 0.1240 and perceived brightness is 43%, so white text on it reaches 6.03:1.

Should I use black or white text on #af2b80?

White. It scores 6.03:1 against #af2b80, versus 3.48:1 for black — AA at any size.

What is the complementary color of #af2b80?

#2BAF5A sits directly opposite on the wheel. Softer options are the split-complements #3EAF2B and #2BAF9C, which give the same contrast with far less vibration.

What colors go well with #af2b80?

For interface work: #FAF4F8 as the surface, #EDC0DD for borders, #9B4B7E for secondary text, #25A732 as an accent and #66194B for hover and pressed states. For a palette, the analogous pair #9C2BAF and #AF2B3E stays calm, while #2BAF5A is the loudest partner.

What is #af2b80 in CMYK for printing?

cmyk(0%, 75%, 27%, 31%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #af2b80 warm or cool?

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

Work with #af2b80 in the Color Lab