Skip to content

#af2b95

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

RGB
175, 43, 149
HSL
312°, 61%, 43%
CMYK
0, 75, 15, 31
Luminance
0.1301

At a glance

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

Hex
#af2b95
Hue
312°
magenta / pink
Saturation
61%
vivid
Lightness
43%
dark
Brightness
69%
HSV value
Perceived
44%
weighted brightness
Luminance
0.1301
WCAG relative
Temperature
Neutral
43/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.83:1
Closest name
Medium Violet Red
ΔE2000 6.4
Where it sits
Hue312° of 360°
Saturation61%
Lightness43%
Temperature
Warm ← → Cool43% cool

Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#af2b95
RGBrgb(175, 43, 149)
HSLhsl(312, 61%, 43%)
CMYKcmyk(0%, 75%, 15%, 31%)
LABlab(42.8 62.5 -28.3)
LCHlch(42.8 68.6 335.6)
OKLCHoklch(0.533 0.200 337.3)
Decimal11479957
Display P3color(display-p3 0.686 0.169 0.584)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af2b95 on white: 5.83:1
AA ✓ pass · AA-large · AAA
Aa
#af2b95 on black: 3.60:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #305898
deuteranopia · #5D6C92
tritanopia · #B9335D

Color scale — 50 to 950

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

#FBF4FA
#F7E8F4
#F0CCE9
#E9A5DC
#DE78CA
#D34BB8
#C530A7
#af2b95
#832070
#5F1B52
#3C1133
Base = 700Lightest = 50 · #FBF4FADarkest = 950 · #3C1133
:root {
  --brand-50: #FBF4FA;
  --brand-100: #F7E8F4;
  --brand-200: #F0CCE9;
  --brand-300: #E9A5DC;
  --brand-400: #DE78CA;
  --brand-500: #D34BB8;
  --brand-600: #C530A7;
  --brand-700: #af2b95;
  --brand-800: #832070;
  --brand-900: #5F1B52;
  --brand-950: #3C1133;
  --brand: #af2b95;
  --brand-ink: #ffffff;
}

Colors that work with #af2b95

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#EDC0E4
Hairlines and dividers
Muted text#9B4B8B
Captions on the surface
Accent#2BA725
Second voice, not a rival
Dark variant#661957
Hover, pressed, headers
Light variant#FAEBF7
Selected rows, tints
Dark surface#241421
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 #af2b95

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#2BAF45
Analogous left#872BAF
Analogous right#AF2B53
Split-complement 1#53AF2B
Split-complement 2#2BAF87
Triadic 1#95AF2B
Triadic 2#2B95AF
Tetradic#AF872B

RGB percentages

Red68.6%
Green16.9%
Blue58.4%

CMYK percentages

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

Color previews

#af2b95 text on a black background

contrast 3.60:1

Card sample

#af2b95 text on a white background

contrast 5.83:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af2b95

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.

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

#af2b95, answered

What color is #af2b95?

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

What is the RGB value of #af2b95?

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

Is #af2b95 a light or a dark color?

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

Should I use black or white text on #af2b95?

White. It scores 5.83:1 against #af2b95, versus 3.60:1 for black — AA at any size.

What is the complementary color of #af2b95?

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

What colors go well with #af2b95?

For interface work: #FAF4F9 as the surface, #EDC0E4 for borders, #9B4B8B for secondary text, #2BA725 as an accent and #661957 for hover and pressed states. For a palette, the analogous pair #872BAF and #AF2B53 stays calm, while #2BAF45 is the loudest partner.

What is #af2b95 in CMYK for printing?

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

Is #af2b95 warm or cool?

Neutral — it scores 43 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF2B65; nudged cooler, #9A29B1.

Work with #af2b95 in the Color Lab