Skip to content

#af5f99

a balanced, soft magenta / pink · warm · closest name: Medium Violet Red

RGB
175, 95, 153
HSL
317°, 33%, 53%
CMYK
0, 46, 13, 31
Luminance
0.1960

At a glance

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

Hex
#af5f99
Hue
317°
magenta / pink
Saturation
33%
soft
Lightness
53%
balanced
Brightness
69%
HSV value
Perceived
51%
weighted brightness
Luminance
0.1960
WCAG relative
Temperature
Warm
41/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
Black
4.92:1
Closest name
Medium Violet Red
ΔE2000 11.4
Where it sits
Hue317° of 360°
Saturation33%
Lightness53%
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#af5f99
RGBrgb(175, 95, 153)
HSLhsl(317, 33%, 53%)
CMYKcmyk(0%, 46%, 13%, 31%)
LABlab(51.4 40.4 -17.4)
LCHlch(51.4 44.0 336.6)
OKLCHoklch(0.597 0.127 338.4)
Decimal11493273
Display P3color(display-p3 0.686 0.373 0.600)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af5f99 on white: 4.27:1
AA ✗ fail · AA-large · AAA
Aa
#af5f99 on black: 4.92:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #61739B
deuteranopia · #777F97
tritanopia · #B76175

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af5f99 is pinned to step 500; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F9F5F8
#F4ECF1
#E8D4E2
#DAB4CF
#C78FB7
#af5f99
#A3528D
#884475
#6D365E
#502A46
#321B2C
Base = 500Lightest = 50 · #F9F5F8Darkest = 950 · #321B2C
:root {
  --brand-50: #F9F5F8;
  --brand-100: #F4ECF1;
  --brand-200: #E8D4E2;
  --brand-300: #DAB4CF;
  --brand-400: #C78FB7;
  --brand-500: #af5f99;
  --brand-600: #A3528D;
  --brand-700: #884475;
  --brand-800: #6D365E;
  --brand-900: #502A46;
  --brand-950: #321B2C;
  --brand: #af5f99;
  --brand-ink: #000000;
}

Colors that work with #af5f99

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#FAF5F8
Tinted page background
Border#E4C9DC
Hairlines and dividers
Muted text#994D84
Captions on the surface
Accent#408C41
Second voice, not a rival
Dark variant#552B49
Hover, pressed, headers
Light variant#F6EEF4
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 #af5f99

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • Headings from 24px up on white
  • Text and icons on dark surfaces
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • Small text on white — under 4.5:1
  • 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#5FAF75
Analogous left#9D5FAF
Analogous right#AF5F71
Split-complement 1#71AF5F
Split-complement 2#5FAF9D
Triadic 1#99AF5F
Triadic 2#5F99AF
Tetradic#AF9D5F

RGB percentages

Red68.6%
Green37.3%
Blue60.0%

CMYK percentages

Cyan0.0%
Magenta45.7%
Yellow12.6%
Key (black)31.4%

Color previews

#af5f99 text on a black background

contrast 4.92:1

Card sample

#af5f99 text on a white background

contrast 4.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af5f99

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.

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

#af5f99, answered

What color is #af5f99?

#af5f99 is a balanced soft magenta / pink, closest to Medium Violet Red (ΔE2000 11.4). It sits at 317° on the hue wheel with 33% saturation and 53% lightness, which reads as warm.

What is the RGB value of #af5f99?

rgb(175, 95, 153) — 175 red, 95 green and 153 blue out of 255, or 68.6% / 37.3% / 60% by channel.

Is #af5f99 a light or a dark color?

It is a mid-tone. Relative luminance is 0.1960 and perceived brightness is 51%, so black text on it reaches 4.92:1.

Should I use black or white text on #af5f99?

Black. It scores 4.92:1 against #af5f99, versus 4.27:1 for white — AA at any size.

What is the complementary color of #af5f99?

#5FAF75 sits directly opposite on the wheel. Softer options are the split-complements #71AF5F and #5FAF9D, which give the same contrast with far less vibration.

What colors go well with #af5f99?

For interface work: #FAF5F8 as the surface, #E4C9DC for borders, #994D84 for secondary text, #408C41 as an accent and #552B49 for hover and pressed states. For a palette, the analogous pair #9D5FAF and #AF5F71 stays calm, while #5FAF75 is the loudest partner.

What is #af5f99 in CMYK for printing?

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

Is #af5f99 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 #AF5F7C; nudged cooler, #AA5CB1.

Work with #af5f99 in the Color Lab