#af417f
a balanced, vivid magenta / pink · warm · closest name: Medium Violet Red
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.
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 |
| RGB | rgb(175, 65, 127) |
| HSL | hsl(326, 46%, 47%) |
| CMYK | cmyk(0%, 63%, 27%, 31%) |
| LAB | lab(44.8 51.1 -11.8) |
| LCH | lch(44.8 52.5 347.0) |
| OKLCH | oklch(0.545 0.158 348.7) |
| Decimal | 11485567 |
| Display P3 | color(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.
Accessibility — WCAG contrast
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.
: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.
Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.
Lightness flips, hue holds. The accent stays the anchor in both themes.
How to use #af417f
Derived from its contrast, chroma and lightness — not from taste.
- ✓Body text and links on white
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Brand accents, badges and data highlights
- ⚠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 | Directly opposite — maximum tension | |
| Analogous left | #A841AF | Neighbour, quieter | |
| Analogous right | #AF4148 | Neighbour, quieter | |
| Split-complement 1 | #48AF41 | Contrast without the clash | |
| Split-complement 2 | #41AFA8 | Contrast without the clash | |
| Triadic 1 | #7FAF41 | Even thirds — balanced and loud | |
| Triadic 2 | #417FAF | Even thirds — balanced and loud | |
| Tetradic | #AFA841 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#af417f text on a black background
contrast 3.89:1
#af417f text on a white background
contrast 5.40:1
CSS3 live lab
The quick brown fox
color: #af417f;
background-color: #af417f;
Glowing headline
text-shadow: 2px 2px 8px #af417f;
Soft neon halo
text-shadow: 0 0 14px rgba(175, 65, 127, 0.45);
box-shadow: 0 12px 32px -8px rgba(175, 65, 127, 0.45);
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.
Closest color with a full write-up: Mulberry (#c54b8c) — ΔE2000 5.7 away, with its history, psychology and brand usage.
#af417f in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
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.