Skip to content

#af2c8d

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

RGB
175, 44, 141
HSL
316°, 60%, 43%
CMYK
0, 75, 19, 31
Luminance
0.1284

At a glance

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

Hex
#af2c8d
Hue
316°
magenta / pink
Saturation
60%
vivid
Lightness
43%
dark
Brightness
69%
HSV value
Perceived
44%
weighted brightness
Luminance
0.1284
WCAG relative
Temperature
Warm
41/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.89:1
Closest name
Medium Violet Red
ΔE2000 5.2
Where it sits
Hue316° of 360°
Saturation60%
Lightness43%
Temperature
Warm ← → Cool41% 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#af2c8d
RGBrgb(175, 44, 141)
HSLhsl(316, 60%, 43%)
CMYKcmyk(0%, 75%, 19%, 31%)
LABlab(42.5 61.1 -23.9)
LCHlch(42.5 65.6 338.6)
OKLCHoklch(0.530 0.194 340.6)
Decimal11480205
Display P3color(display-p3 0.686 0.173 0.553)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2c8d on white: 5.89:1
AA ✓ pass · AA-large · AAA
Aa
#af2c8d on black: 3.57:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #365790
deuteranopia · #616C8A
tritanopia · #BA3059

Color scale — 50 to 950

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

#FBF4F9
#F7E9F3
#EFCCE6
#E8A5D7
#DD79C3
#D24CAF
#C4319E
#af2c8d
#822169
#5F1C4D
#3B1130
Base = 700Lightest = 50 · #FBF4F9Darkest = 950 · #3B1130
:root {
  --brand-50: #FBF4F9;
  --brand-100: #F7E9F3;
  --brand-200: #EFCCE6;
  --brand-300: #E8A5D7;
  --brand-400: #DD79C3;
  --brand-500: #D24CAF;
  --brand-600: #C4319E;
  --brand-700: #af2c8d;
  --brand-800: #822169;
  --brand-900: #5F1C4D;
  --brand-950: #3B1130;
  --brand: #af2c8d;
  --brand-ink: #ffffff;
}

Colors that work with #af2c8d

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#FAF4F9
Tinted page background
Border#EDC0E1
Hairlines and dividers
Muted text#9B4B86
Captions on the surface
Accent#25A726
Second voice, not a rival
Dark variant#661A52
Hover, pressed, headers
Light variant#FAEBF6
Selected rows, tints
Dark surface#241420
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 #af2c8d

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#2CAF4E
Analogous left#8F2CAF
Analogous right#AF2C4B
Split-complement 1#4BAF2C
Split-complement 2#2CAF8F
Triadic 1#8DAF2C
Triadic 2#2C8DAF
Tetradic#AF8F2C

RGB percentages

Red68.6%
Green17.3%
Blue55.3%

CMYK percentages

Cyan0.0%
Magenta74.9%
Yellow19.4%
Key (black)31.4%

Color previews

#af2c8d text on a black background

contrast 3.57:1

Card sample

#af2c8d text on a white background

contrast 5.89:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2c8d

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.

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

#af2c8d, answered

What color is #af2c8d?

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

What is the RGB value of #af2c8d?

rgb(175, 44, 141) — 175 red, 44 green and 141 blue out of 255, or 68.6% / 17.3% / 55.3% by channel.

Is #af2c8d a light or a dark color?

It is a dark color. Relative luminance is 0.1284 and perceived brightness is 44%, so white text on it reaches 5.89:1.

Should I use black or white text on #af2c8d?

White. It scores 5.89:1 against #af2c8d, versus 3.57:1 for black — AA at any size.

What is the complementary color of #af2c8d?

#2CAF4E sits directly opposite on the wheel. Softer options are the split-complements #4BAF2C and #2CAF8F, which give the same contrast with far less vibration.

What colors go well with #af2c8d?

For interface work: #FAF4F9 as the surface, #EDC0E1 for borders, #9B4B86 for secondary text, #25A726 as an accent and #661A52 for hover and pressed states. For a palette, the analogous pair #8F2CAF and #AF2C4B stays calm, while #2CAF4E is the loudest partner.

What is #af2c8d in CMYK for printing?

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

Is #af2c8d warm or cool?

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

Work with #af2c8d in the Color Lab