Skip to content

#af5380

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

RGB
175, 83, 128
HSL
331°, 37%, 51%
CMYK
0, 53, 27, 31
Luminance
0.1686

At a glance

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

Hex
#af5380
Hue
331°
magenta / pink
Saturation
37%
soft
Lightness
51%
balanced
Brightness
69%
HSV value
Perceived
48%
weighted brightness
Luminance
0.1686
WCAG relative
Temperature
Warm
33/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
White
4.80:1
Closest name
Medium Violet Red
ΔE2000 8.8
Where it sits
Hue331° of 360°
Saturation37%
Lightness51%
Temperature
Warm ← → Cool33% 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#af5380
RGBrgb(175, 83, 128)
HSLhsl(331, 37%, 51%)
CMYKcmyk(0%, 53%, 27%, 31%)
LABlab(48.1 42.7 -7.5)
LCHlch(48.1 43.4 350.0)
OKLCHoklch(0.570 0.131 351.4)
Decimal11490176
Display P3color(display-p3 0.686 0.325 0.502)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af5380 on white: 4.80:1
AA ✓ pass · AA-large · AAA
Aa
#af5380 on black: 4.37:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #5E6881
deuteranopia · #76787E
tritanopia · #BA4F64

Color scale — 50 to 950

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

#FAF5F7
#F4EBF0
#E8D3DE
#DBB2C6
#CA8CAA
#B8668E
#af5380
#8B4165
#6F3451
#52293D
#331926
Base = 600Lightest = 50 · #FAF5F7Darkest = 950 · #331926
:root {
  --brand-50: #FAF5F7;
  --brand-100: #F4EBF0;
  --brand-200: #E8D3DE;
  --brand-300: #DBB2C6;
  --brand-400: #CA8CAA;
  --brand-500: #B8668E;
  --brand-600: #af5380;
  --brand-700: #8B4165;
  --brand-800: #6F3451;
  --brand-900: #52293D;
  --brand-950: #331926;
  --brand: #af5380;
  --brand-ink: #ffffff;
}

Colors that work with #af5380

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#FAF5F7
Tinted page background
Border#E5C7D6
Hairlines and dividers
Muted text#9B4B72
Captions on the surface
Accent#3D8F53
Second voice, not a rival
Dark variant#57283F
Hover, pressed, headers
Light variant#F7EEF2
Selected rows, tints
Dark surface#24141C
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 #af5380

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

Works well for
  • Body text and links on white
  • 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#53AF82
Analogous left#AF53AE
Analogous right#AF5453
Split-complement 1#53AF54
Split-complement 2#53AEAF
Triadic 1#80AF53
Triadic 2#5380AF
Tetradic#AEAF53

RGB percentages

Red68.6%
Green32.5%
Blue50.2%

CMYK percentages

Cyan0.0%
Magenta52.6%
Yellow26.9%
Key (black)31.4%

Color previews

#af5380 text on a black background

contrast 4.37:1

Card sample

#af5380 text on a white background

contrast 4.80:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af5380

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.

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

#af5380, answered

What color is #af5380?

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

What is the RGB value of #af5380?

rgb(175, 83, 128) — 175 red, 83 green and 128 blue out of 255, or 68.6% / 32.5% / 50.2% by channel.

Is #af5380 a light or a dark color?

It is a dark color. Relative luminance is 0.1686 and perceived brightness is 48%, so white text on it reaches 4.80:1.

Should I use black or white text on #af5380?

White. It scores 4.80:1 against #af5380, versus 4.37:1 for black — AA at any size.

What is the complementary color of #af5380?

#53AF82 sits directly opposite on the wheel. Softer options are the split-complements #53AF54 and #53AEAF, which give the same contrast with far less vibration.

What colors go well with #af5380?

For interface work: #FAF5F7 as the surface, #E5C7D6 for borders, #9B4B72 for secondary text, #3D8F53 as an accent and #57283F for hover and pressed states. For a palette, the analogous pair #AF53AE and #AF5453 stays calm, while #53AF82 is the loudest partner.

What is #af5380 in CMYK for printing?

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

Is #af5380 warm or cool?

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

Work with #af5380 in the Color Lab