Skip to content

#af2b83

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

RGB
175, 43, 131
HSL
320°, 61%, 43%
CMYK
0, 75, 25, 31
Luminance
0.1248

At a glance

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

Hex
#af2b83
Hue
320°
magenta / pink
Saturation
61%
vivid
Lightness
43%
dark
Brightness
69%
HSV value
Perceived
43%
weighted brightness
Luminance
0.1248
WCAG relative
Temperature
Warm
39/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
6.01:1
Closest name
Medium Violet Red
ΔE2000 4.3
Where it sits
Hue320° of 360°
Saturation61%
Lightness43%
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#af2b83
RGBrgb(175, 43, 131)
HSLhsl(320, 61%, 43%)
CMYKcmyk(0%, 75%, 25%, 31%)
LABlab(42.0 60.1 -18.6)
LCHlch(42.0 62.9 342.8)
OKLCHoklch(0.525 0.188 344.7)
Decimal11479939
Display P3color(display-p3 0.686 0.169 0.514)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2b83 on white: 6.01:1
AA ✓ pass · AA-large · AAA
Aa
#af2b83 on black: 3.50:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #3B5585
deuteranopia · #646B80
tritanopia · #BB2954

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af2b83 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
#F7E8F2
#F0CCE4
#E9A5D2
#DE78BC
#D34BA5
#C53093
#af2b83
#832062
#5F1B49
#3C112D
Base = 700Lightest = 50 · #FBF4F9Darkest = 950 · #3C112D
:root {
  --brand-50: #FBF4F9;
  --brand-100: #F7E8F2;
  --brand-200: #F0CCE4;
  --brand-300: #E9A5D2;
  --brand-400: #DE78BC;
  --brand-500: #D34BA5;
  --brand-600: #C53093;
  --brand-700: #af2b83;
  --brand-800: #832062;
  --brand-900: #5F1B49;
  --brand-950: #3C112D;
  --brand: #af2b83;
  --brand-ink: #ffffff;
}

Colors that work with #af2b83

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#25A72F
Second voice, not a rival
Dark variant#66194D
Hover, pressed, headers
Light variant#FAEBF5
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 #af2b83

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#2BAF57
Analogous left#992BAF
Analogous right#AF2B41
Split-complement 1#41AF2B
Split-complement 2#2BAF99
Triadic 1#83AF2B
Triadic 2#2B83AF
Tetradic#AF992B

RGB percentages

Red68.6%
Green16.9%
Blue51.4%

CMYK percentages

Cyan0.0%
Magenta75.4%
Yellow25.1%
Key (black)31.4%

Color previews

#af2b83 text on a black background

contrast 3.50:1

Card sample

#af2b83 text on a white background

contrast 6.01:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2b83

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.

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

#af2b83, answered

What color is #af2b83?

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

What is the RGB value of #af2b83?

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

Is #af2b83 a light or a dark color?

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

Should I use black or white text on #af2b83?

White. It scores 6.01:1 against #af2b83, versus 3.50:1 for black — AA at any size.

What is the complementary color of #af2b83?

#2BAF57 sits directly opposite on the wheel. Softer options are the split-complements #41AF2B and #2BAF99, which give the same contrast with far less vibration.

What colors go well with #af2b83?

For interface work: #FAF4F8 as the surface, #EDC0DE for borders, #9B4B80 for secondary text, #25A72F as an accent and #66194D for hover and pressed states. For a palette, the analogous pair #992BAF and #AF2B41 stays calm, while #2BAF57 is the loudest partner.

What is #af2b83 in CMYK for printing?

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

Is #af2b83 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 #AF2B52; nudged cooler, #AD29B1.

Work with #af2b83 in the Color Lab