#af5b84
a balanced, soft magenta / pink · warm · closest name: Medium Violet Red
At a glance
Every number on this page in one read: what #af5b84 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 | #af5b84 |
| RGB | rgb(175, 91, 132) |
| HSL | hsl(331, 34%, 52%) |
| CMYK | cmyk(0%, 48%, 25%, 31%) |
| LAB | lab(49.8 39.2 -7.3) |
| LCH | lch(49.8 39.8 349.4) |
| OKLCH | oklch(0.583 0.119 350.8) |
| Decimal | 11492228 |
| Display P3 | color(display-p3 0.686 0.357 0.518) |
Copy-ready code
/* CSS */
color: #af5b84;
background-color: #af5b84;
/* Tailwind (arbitrary) */
class="text-[#af5b84] bg-[#af5b84]"
/* SCSS */
$brand: #af5b84;
/* SwiftUI */
Color(red: 0.686, green: 0.357, blue: 0.518)
/* Android */
Color.parseColor("#af5b84")
/* Flutter */
Color(0xFFAF5B84)
/* Python / OpenCV (BGR) */
(132, 91, 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. #af5b84 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.
:root {
--brand-50: #F9F5F7;
--brand-100: #F4ECF0;
--brand-200: #E8D4DE;
--brand-300: #DAB4C6;
--brand-400: #C88EAA;
--brand-500: #af5b84;
--brand-600: #A55079;
--brand-700: #894365;
--brand-800: #6E3651;
--brand-900: #512A3D;
--brand-950: #321A26;
--brand: #af5b84;
--brand-ink: #000000;
}Colors that work with #af5b84
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 #af5b84
Derived from its contrast, chroma and lightness — not from taste.
- ✓Body text and links on white
- ✓Text and icons on dark surfaces
- ✓Charts, tags and secondary surfaces
- ✓Brand accents, badges and data highlights
- ⚠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 | #5BAF86 | Directly opposite — maximum tension | |
| Analogous left | #AF5BAE | Neighbour, quieter | |
| Analogous right | #AF5C5B | Neighbour, quieter | |
| Split-complement 1 | #5BAF5C | Contrast without the clash | |
| Split-complement 2 | #5BAEAF | Contrast without the clash | |
| Triadic 1 | #84AF5B | Even thirds — balanced and loud | |
| Triadic 2 | #5B84AF | Even thirds — balanced and loud | |
| Tetradic | #AEAF5B | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#af5b84 text on a black background
contrast 4.65:1
#af5b84 text on a white background
contrast 4.51:1
CSS3 live lab
The quick brown fox
color: #af5b84;
background-color: #af5b84;
Glowing headline
text-shadow: 2px 2px 8px #af5b84;
Soft neon halo
text-shadow: 0 0 14px rgba(175, 91, 132, 0.45);
box-shadow: 0 12px 32px -8px rgba(175, 91, 132, 0.45);
border: 3px solid #af5b84; background: linear-gradient(135deg, #af5b84, #AF6A5B);
Monochromatic scale
Palettes built from #af5b84
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.2 away, with its history, psychology and brand usage.
#af5b84 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.
#af5b84, answered
What color is #af5b84?
#af5b84 is a balanced soft magenta / pink, closest to Medium Violet Red (ΔE2000 10.5). It sits at 331° on the hue wheel with 34% saturation and 52% lightness, which reads as warm.
What is the RGB value of #af5b84?
rgb(175, 91, 132) — 175 red, 91 green and 132 blue out of 255, or 68.6% / 35.7% / 51.8% by channel.
Is #af5b84 a light or a dark color?
It is a mid-tone. Relative luminance is 0.1826 and perceived brightness is 50%, so black text on it reaches 4.65:1.
Should I use black or white text on #af5b84?
Black. It scores 4.65:1 against #af5b84, versus 4.51:1 for white — AA at any size.
What is the complementary color of #af5b84?
#5BAF86 sits directly opposite on the wheel. Softer options are the split-complements #5BAF5C and #5BAEAF, which give the same contrast with far less vibration.
What colors go well with #af5b84?
For interface work: #FAF5F7 as the surface, #E4C8D6 for borders, #9A4B72 for secondary text, #3F8D54 as an accent and #562A3F for hover and pressed states. For a palette, the analogous pair #AF5BAE and #AF5C5B stays calm, while #5BAF86 is the loudest partner.
What is #af5b84 in CMYK for printing?
cmyk(0%, 48%, 25%, 31%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #af5b84 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 #AF5B65; nudged cooler, #B159A5.