Skip to content

#af5c8d

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

RGB
175, 92, 141
HSL
325°, 34%, 52%
CMYK
0, 47, 19, 31
Luminance
0.1869

At a glance

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

Hex
#af5c8d
Hue
325°
magenta / pink
Saturation
34%
soft
Lightness
52%
balanced
Brightness
69%
HSV value
Perceived
50%
weighted brightness
Luminance
0.1869
WCAG relative
Temperature
Warm
37/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
Black
4.74:1
Closest name
Medium Violet Red
ΔE2000 10.4
Where it sits
Hue325° of 360°
Saturation34%
Lightness52%
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#af5c8d
RGBrgb(175, 92, 141)
HSLhsl(325, 34%, 52%)
CMYKcmyk(0%, 47%, 19%, 31%)
LABlab(50.3 40.0 -11.9)
LCHlch(50.3 41.7 343.4)
OKLCHoklch(0.588 0.123 345.2)
Decimal11492493
Display P3color(display-p3 0.686 0.361 0.553)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af5c8d on white: 4.43:1
AA ✗ fail · AA-large · AAA
Aa
#af5c8d on black: 4.74:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #626F8F
deuteranopia · #787D8B
tritanopia · #B95B6E

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af5c8d 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
#F4ECF0
#E8D4E0
#DAB4CA
#C88EB0
#af5c8d
#A45182
#89436C
#6E3657
#502A41
#321A28
Base = 500Lightest = 50 · #F9F5F8Darkest = 950 · #321A28
:root {
  --brand-50: #F9F5F8;
  --brand-100: #F4ECF0;
  --brand-200: #E8D4E0;
  --brand-300: #DAB4CA;
  --brand-400: #C88EB0;
  --brand-500: #af5c8d;
  --brand-600: #A45182;
  --brand-700: #89436C;
  --brand-800: #6E3657;
  --brand-900: #502A41;
  --brand-950: #321A28;
  --brand: #af5c8d;
  --brand-ink: #000000;
}

Colors that work with #af5c8d

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#E4C8D9
Hairlines and dividers
Muted text#9A4C7A
Captions on the surface
Accent#3F8D4C
Second voice, not a rival
Dark variant#562A44
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 #af5c8d

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#5CAF7E
Analogous left#A85CAF
Analogous right#AF5C64
Split-complement 1#64AF5C
Split-complement 2#5CAFA8
Triadic 1#8DAF5C
Triadic 2#5C8DAF
Tetradic#AFA85C

RGB percentages

Red68.6%
Green36.1%
Blue55.3%

CMYK percentages

Cyan0.0%
Magenta47.4%
Yellow19.4%
Key (black)31.4%

Color previews

#af5c8d text on a black background

contrast 4.74:1

Card sample

#af5c8d text on a white background

contrast 4.43:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af5c8d

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.

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

#af5c8d, answered

What color is #af5c8d?

#af5c8d is a balanced soft magenta / pink, closest to Medium Violet Red (ΔE2000 10.4). It sits at 325° on the hue wheel with 34% saturation and 52% lightness, which reads as warm.

What is the RGB value of #af5c8d?

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

Is #af5c8d a light or a dark color?

It is a mid-tone. Relative luminance is 0.1869 and perceived brightness is 50%, so black text on it reaches 4.74:1.

Should I use black or white text on #af5c8d?

Black. It scores 4.74:1 against #af5c8d, versus 4.43:1 for white — AA at any size.

What is the complementary color of #af5c8d?

#5CAF7E sits directly opposite on the wheel. Softer options are the split-complements #64AF5C and #5CAFA8, which give the same contrast with far less vibration.

What colors go well with #af5c8d?

For interface work: #FAF5F8 as the surface, #E4C8D9 for borders, #9A4C7A for secondary text, #3F8D4C as an accent and #562A44 for hover and pressed states. For a palette, the analogous pair #A85CAF and #AF5C64 stays calm, while #5CAF7E is the loudest partner.

What is #af5c8d in CMYK for printing?

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

Is #af5c8d 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 #AF5C6F; nudged cooler, #B25AAE.

Work with #af5c8d in the Color Lab