Skip to content

#af558b

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

RGB
175, 85, 139
HSL
324°, 36%, 51%
CMYK
0, 51, 21, 31
Luminance
0.1748

At a glance

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

Hex
#af558b
Hue
324°
magenta / pink
Saturation
36%
soft
Lightness
51%
balanced
Brightness
69%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1748
WCAG relative
Temperature
Warm
37/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
White
4.67:1
Closest name
Medium Violet Red
ΔE2000 8.7
Where it sits
Hue324° of 360°
Saturation36%
Lightness51%
Temperature
Warm ← → Cool37% 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#af558b
RGBrgb(175, 85, 139)
HSLhsl(324, 36%, 51%)
CMYKcmyk(0%, 51%, 21%, 31%)
LABlab(48.9 43.3 -13.0)
LCHlch(48.9 45.2 343.3)
OKLCHoklch(0.577 0.134 345.1)
Decimal11490699
Display P3color(display-p3 0.686 0.333 0.545)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af558b on white: 4.67:1
AA ✓ pass · AA-large · AAA
Aa
#af558b on black: 4.50:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #5C6B8D
deuteranopia · #757A89
tritanopia · #B9546A

Color scale — 50 to 950

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

#F9F5F8
#F4EBF1
#E8D3E0
#DBB3CB
#C98DB1
#B76697
#af558b
#8B416D
#6F3457
#512941
#331A29
Base = 600Lightest = 50 · #F9F5F8Darkest = 950 · #331A29
:root {
  --brand-50: #F9F5F8;
  --brand-100: #F4EBF1;
  --brand-200: #E8D3E0;
  --brand-300: #DBB3CB;
  --brand-400: #C98DB1;
  --brand-500: #B76697;
  --brand-600: #af558b;
  --brand-700: #8B416D;
  --brand-800: #6F3457;
  --brand-900: #512941;
  --brand-950: #331A29;
  --brand: #af558b;
  --brand-ink: #ffffff;
}

Colors that work with #af558b

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#FAF5F8
Tinted page background
Border#E5C8D9
Hairlines and dividers
Muted text#9B4B7B
Captions on the surface
Accent#3D8F49
Second voice, not a rival
Dark variant#572944
Hover, pressed, headers
Light variant#F7EEF3
Selected rows, tints
Dark surface#24141E
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 #af558b

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

Works well for
  • Body text and links on white
  • Text and icons on dark surfaces
  • Charts, tags and secondary surfaces
  • Brand accents, badges and data highlights
Use with care
  • 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#55AF79
Analogous left#A655AF
Analogous right#AF555E
Split-complement 1#5EAF55
Split-complement 2#55AFA6
Triadic 1#8BAF55
Triadic 2#558BAF
Tetradic#AFA655

RGB percentages

Red68.6%
Green33.3%
Blue54.5%

CMYK percentages

Cyan0.0%
Magenta51.4%
Yellow20.6%
Key (black)31.4%

Color previews

#af558b text on a black background

contrast 4.50:1

Card sample

#af558b text on a white background

contrast 4.67:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af558b

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.

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

#af558b, answered

What color is #af558b?

#af558b is a balanced soft magenta / pink, closest to Medium Violet Red (ΔE2000 8.7). It sits at 324° on the hue wheel with 36% saturation and 51% lightness, which reads as warm.

What is the RGB value of #af558b?

rgb(175, 85, 139) — 175 red, 85 green and 139 blue out of 255, or 68.6% / 33.3% / 54.5% by channel.

Is #af558b a light or a dark color?

It is a dark color. Relative luminance is 0.1748 and perceived brightness is 49%, so white text on it reaches 4.67:1.

Should I use black or white text on #af558b?

White. It scores 4.67:1 against #af558b, versus 4.50:1 for black — AA at any size.

What is the complementary color of #af558b?

#55AF79 sits directly opposite on the wheel. Softer options are the split-complements #5EAF55 and #55AFA6, which give the same contrast with far less vibration.

What colors go well with #af558b?

For interface work: #FAF5F8 as the surface, #E5C8D9 for borders, #9B4B7B for secondary text, #3D8F49 as an accent and #572944 for hover and pressed states. For a palette, the analogous pair #A655AF and #AF555E stays calm, while #55AF79 is the loudest partner.

What is #af558b in CMYK for printing?

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

Is #af558b warm or cool?

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

Work with #af558b in the Color Lab