Skip to content

#af4d74

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

RGB
175, 77, 116
HSL
336°, 39%, 49%
CMYK
0, 56, 34, 31
Luminance
0.1568

At a glance

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

Hex
#af4d74
Hue
336°
magenta / pink
Saturation
39%
soft
Lightness
49%
balanced
Brightness
69%
HSV value
Perceived
47%
weighted brightness
Luminance
0.1568
WCAG relative
Temperature
Warm
30/100 cool
Color family
Magenta / pink
Tone
Soft
Best ink
White
5.08:1
Closest name
Medium Violet Red
ΔE2000 8.9
Where it sits
Hue336° of 360°
Saturation39%
Lightness49%
Temperature
Warm ← → Cool30% 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#af4d74
RGBrgb(175, 77, 116)
HSLhsl(336, 39%, 49%)
CMYKcmyk(0%, 56%, 34%, 31%)
LABlab(46.6 44.1 -2.5)
LCHlch(46.6 44.2 356.7)
OKLCHoklch(0.557 0.134 357.4)
Decimal11488628
Display P3color(display-p3 0.686 0.302 0.455)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af4d74 on white: 5.08:1
AA ✓ pass · AA-large · AAA
Aa
#af4d74 on black: 4.14:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #5C6375
deuteranopia · #767572
tritanopia · #BC465C

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #af4d74 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
#F4EBEF
#E9D3DC
#DDB1C2
#CC8AA4
#BA6386
#af4d74
#8E3E5E
#71324B
#532739
#341923
Base = 600Lightest = 50 · #FAF5F7Darkest = 950 · #341923
:root {
  --brand-50: #FAF5F7;
  --brand-100: #F4EBEF;
  --brand-200: #E9D3DC;
  --brand-300: #DDB1C2;
  --brand-400: #CC8AA4;
  --brand-500: #BA6386;
  --brand-600: #af4d74;
  --brand-700: #8E3E5E;
  --brand-800: #71324B;
  --brand-900: #532739;
  --brand-950: #341923;
  --brand: #af4d74;
  --brand-ink: #ffffff;
}

Colors that work with #af4d74

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#FAF4F7
Tinted page background
Border#E6C6D3
Hairlines and dividers
Muted text#9B4B6B
Captions on the surface
Accent#3A9259
Second voice, not a rival
Dark variant#59273B
Hover, pressed, headers
Light variant#F7EDF1
Selected rows, tints
Dark surface#24141A
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 #af4d74

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#4DAF88
Analogous left#AF4DA5
Analogous right#AF574D
Split-complement 1#4DAF57
Split-complement 2#4DA5AF
Triadic 1#74AF4D
Triadic 2#4D74AF
Tetradic#A5AF4D

RGB percentages

Red68.6%
Green30.2%
Blue45.5%

CMYK percentages

Cyan0.0%
Magenta56.0%
Yellow33.7%
Key (black)31.4%

Color previews

#af4d74 text on a black background

contrast 4.14:1

Card sample

#af4d74 text on a white background

contrast 5.08:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af4d74

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.

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

#af4d74, answered

What color is #af4d74?

#af4d74 is a balanced soft magenta / pink, closest to Medium Violet Red (ΔE2000 8.9). It sits at 336° on the hue wheel with 39% saturation and 49% lightness, which reads as warm.

What is the RGB value of #af4d74?

rgb(175, 77, 116) — 175 red, 77 green and 116 blue out of 255, or 68.6% / 30.2% / 45.5% by channel.

Is #af4d74 a light or a dark color?

It is a dark color. Relative luminance is 0.1568 and perceived brightness is 47%, so white text on it reaches 5.08:1.

Should I use black or white text on #af4d74?

White. It scores 5.08:1 against #af4d74, versus 4.14:1 for black — AA at any size.

What is the complementary color of #af4d74?

#4DAF88 sits directly opposite on the wheel. Softer options are the split-complements #4DAF57 and #4DA5AF, which give the same contrast with far less vibration.

What colors go well with #af4d74?

For interface work: #FAF4F7 as the surface, #E6C6D3 for borders, #9B4B6B for secondary text, #3A9259 as an accent and #59273B for hover and pressed states. For a palette, the analogous pair #AF4DA5 and #AF574D stays calm, while #4DAF88 is the loudest partner.

What is #af4d74 in CMYK for printing?

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

Is #af4d74 warm or cool?

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

Work with #af4d74 in the Color Lab