Skip to content

#af2180

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

RGB
175, 33, 128
HSL
320°, 68%, 41%
CMYK
0, 81, 27, 31
Luminance
0.1176

At a glance

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

Hex
#af2180
Hue
320°
magenta / pink
Saturation
68%
vivid
Lightness
41%
dark
Brightness
69%
HSV value
Perceived
42%
weighted brightness
Luminance
0.1176
WCAG relative
Temperature
Warm
39/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
6.26:1
Closest name
Medium Violet Red
ΔE2000 4.5
Where it sits
Hue320° of 360°
Saturation68%
Lightness41%
Temperature
Warm ← → Cool39% 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#af2180
RGBrgb(175, 33, 128)
HSLhsl(320, 68%, 41%)
CMYKcmyk(0%, 81%, 27%, 31%)
LABlab(40.8 62.6 -18.5)
LCHlch(40.8 65.3 343.5)
OKLCHoklch(0.516 0.197 345.5)
Decimal11477376
Display P3color(display-p3 0.686 0.129 0.502)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2180 on white: 6.26:1
AA ✓ pass · AA-large · AAA
Aa
#af2180 on black: 3.35:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #365182
deuteranopia · #62697D
tritanopia · #BB1D4F

Color scale — 50 to 950

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

#FBF3F9
#F8E8F2
#F2CAE5
#EDA1D4
#E471BE
#DB42A9
#CE2797
#af2180
#891A64
#64174A
#3E0E2E
Base = 700Lightest = 50 · #FBF3F9Darkest = 950 · #3E0E2E
:root {
  --brand-50: #FBF3F9;
  --brand-100: #F8E8F2;
  --brand-200: #F2CAE5;
  --brand-300: #EDA1D4;
  --brand-400: #E471BE;
  --brand-500: #DB42A9;
  --brand-600: #CE2797;
  --brand-700: #af2180;
  --brand-800: #891A64;
  --brand-900: #64174A;
  --brand-950: #3E0E2E;
  --brand: #af2180;
  --brand-ink: #ffffff;
}

Colors that work with #af2180

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#EDC0DE
Hairlines and dividers
Muted text#9B4B80
Captions on the surface
Accent#1CB028
Second voice, not a rival
Dark variant#6B144E
Hover, pressed, headers
Light variant#FBEAF5
Selected rows, tints
Dark surface#24141F
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 #af2180

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#21AF50
Analogous left#9721AF
Analogous right#AF2139
Split-complement 1#39AF21
Split-complement 2#21AF97
Triadic 1#80AF21
Triadic 2#2180AF
Tetradic#AF9721

RGB percentages

Red68.6%
Green12.9%
Blue50.2%

CMYK percentages

Cyan0.0%
Magenta81.1%
Yellow26.9%
Key (black)31.4%

Color previews

#af2180 text on a black background

contrast 3.35:1

Card sample

#af2180 text on a white background

contrast 6.26:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2180

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.

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

#af2180, answered

What color is #af2180?

#af2180 is a dark vivid magenta / pink, closest to Medium Violet Red (ΔE2000 4.5). It sits at 320° on the hue wheel with 68% saturation and 41% lightness, which reads as warm.

What is the RGB value of #af2180?

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

Is #af2180 a light or a dark color?

It is a dark color. Relative luminance is 0.1176 and perceived brightness is 42%, so white text on it reaches 6.26:1.

Should I use black or white text on #af2180?

White. It scores 6.26:1 against #af2180, versus 3.35:1 for black — AA at any size.

What is the complementary color of #af2180?

#21AF50 sits directly opposite on the wheel. Softer options are the split-complements #39AF21 and #21AF97, which give the same contrast with far less vibration.

What colors go well with #af2180?

For interface work: #FAF4F8 as the surface, #EDC0DE for borders, #9B4B80 for secondary text, #1CB028 as an accent and #6B144E for hover and pressed states. For a palette, the analogous pair #9721AF and #AF2139 stays calm, while #21AF50 is the loudest partner.

What is #af2180 in CMYK for printing?

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

Is #af2180 warm or cool?

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

Work with #af2180 in the Color Lab