Skip to content

#af417f

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

RGB
175, 65, 127
HSL
326°, 46%, 47%
CMYK
0, 63, 27, 31
Luminance
0.1443

At a glance

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

Hex
#af417f
Hue
326°
magenta / pink
Saturation
46%
vivid
Lightness
47%
balanced
Brightness
69%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1443
WCAG relative
Temperature
Warm
35/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.40:1
Closest name
Medium Violet Red
ΔE2000 5.3
Where it sits
Hue326° of 360°
Saturation46%
Lightness47%
Temperature
Warm ← → Cool35% 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#af417f
RGBrgb(175, 65, 127)
HSLhsl(326, 46%, 47%)
CMYKcmyk(0%, 63%, 27%, 31%)
LABlab(44.8 51.1 -11.8)
LCHlch(44.8 52.5 347.0)
OKLCHoklch(0.545 0.158 348.7)
Decimal11485567
Display P3color(display-p3 0.686 0.255 0.498)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#af417f on white: 5.40:1
AA ✓ pass · AA-large · AAA
Aa
#af417f on black: 3.89:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #4F5E81
deuteranopia · #6E717C
tritanopia · #BB3D5A

Color scale — 50 to 950

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

#FAF5F8
#F5EAF0
#EBD0E0
#E1ADCA
#D184B0
#C25B95
#af417f
#95376C
#772C56
#572340
#361628
Base = 600Lightest = 50 · #FAF5F8Darkest = 950 · #361628
:root {
  --brand-50: #FAF5F8;
  --brand-100: #F5EAF0;
  --brand-200: #EBD0E0;
  --brand-300: #E1ADCA;
  --brand-400: #D184B0;
  --brand-500: #C25B95;
  --brand-600: #af417f;
  --brand-700: #95376C;
  --brand-800: #772C56;
  --brand-900: #572340;
  --brand-950: #361628;
  --brand: #af417f;
  --brand-ink: #ffffff;
}

Colors that work with #af417f

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#FAF4F8
Tinted page background
Border#E9C4D9
Hairlines and dividers
Muted text#9B4B78
Captions on the surface
Accent#339947
Second voice, not a rival
Dark variant#5D2343
Hover, pressed, headers
Light variant#F8ECF3
Selected rows, tints
Dark surface#24141D
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 #af417f

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

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • 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#41AF71
Analogous left#A841AF
Analogous right#AF4148
Split-complement 1#48AF41
Split-complement 2#41AFA8
Triadic 1#7FAF41
Triadic 2#417FAF
Tetradic#AFA841

RGB percentages

Red68.6%
Green25.5%
Blue49.8%

CMYK percentages

Cyan0.0%
Magenta62.9%
Yellow27.4%
Key (black)31.4%

Color previews

#af417f text on a black background

contrast 3.89:1

Card sample

#af417f text on a white background

contrast 5.40:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #af417f

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.

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

#af417f, answered

What color is #af417f?

#af417f is a balanced vivid magenta / pink, closest to Medium Violet Red (ΔE2000 5.3). It sits at 326° on the hue wheel with 46% saturation and 47% lightness, which reads as warm.

What is the RGB value of #af417f?

rgb(175, 65, 127) — 175 red, 65 green and 127 blue out of 255, or 68.6% / 25.5% / 49.8% by channel.

Is #af417f a light or a dark color?

It is a dark color. Relative luminance is 0.1443 and perceived brightness is 46%, so white text on it reaches 5.40:1.

Should I use black or white text on #af417f?

White. It scores 5.40:1 against #af417f, versus 3.89:1 for black — AA at any size.

What is the complementary color of #af417f?

#41AF71 sits directly opposite on the wheel. Softer options are the split-complements #48AF41 and #41AFA8, which give the same contrast with far less vibration.

What colors go well with #af417f?

For interface work: #FAF4F8 as the surface, #E9C4D9 for borders, #9B4B78 for secondary text, #339947 as an accent and #5D2343 for hover and pressed states. For a palette, the analogous pair #A841AF and #AF4148 stays calm, while #41AF71 is the loudest partner.

What is #af417f in CMYK for printing?

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

Is #af417f warm or cool?

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

Work with #af417f in the Color Lab