#af8fac
a balanced, soft magenta / pink · neutral · closest name: Rosy Brown
At a glance
Every number on this page in one read: what #af8fac is made of, how bright it looks, and which way it leans.
Reads neutral. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #af8fac |
| RGB | rgb(175, 143, 172) |
| HSL | hsl(306, 17%, 62%) |
| CMYK | cmyk(0%, 18%, 2%, 31%) |
| LAB | lab(63.1 17.1 -10.7) |
| LCH | lch(63.1 20.2 328.1) |
| OKLCH | oklch(0.689 0.056 329.2) |
| Decimal | 11505580 |
| Display P3 | color(display-p3 0.686 0.561 0.675) |
Copy-ready code
/* CSS */
color: #af8fac;
background-color: #af8fac;
/* Tailwind (arbitrary) */
class="text-[#af8fac] bg-[#af8fac]"
/* SCSS */
$brand: #af8fac;
/* SwiftUI */
Color(red: 0.686, green: 0.561, blue: 0.675)
/* Android */
Color.parseColor("#af8fac")
/* Flutter */
Color(0xFFAF8FAC)
/* Python / OpenCV (BGR) */
(172, 143, 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. #af8fac is pinned to step 400; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #F8F6F8;
--brand-100: #F2EEF1;
--brand-200: #E3D9E2;
--brand-300: #D0BECF;
--brand-400: #af8fac;
--brand-500: #A27C9E;
--brand-600: #8F668B;
--brand-700: #775574;
--brand-800: #5F445D;
--brand-900: #473445;
--brand-950: #2C202B;
--brand: #af8fac;
--brand-ink: #000000;
}Colors that work with #af8fac
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 #af8fac
Derived from its contrast, chroma and lightness — not from taste.
- ✓Text and icons on dark surfaces
- ✓Charts, tags and secondary surfaces
- ✓Brand accents, badges and data highlights
- ⚠Text of any size on white — fails WCAG AA
- ⚠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 | #8FAF92 | Directly opposite — maximum tension | |
| Analogous left | #A28FAF | Neighbour, quieter | |
| Analogous right | #AF8F9C | Neighbour, quieter | |
| Split-complement 1 | #9CAF8F | Contrast without the clash | |
| Split-complement 2 | #8FAFA2 | Contrast without the clash | |
| Triadic 1 | #ACAF8F | Even thirds — balanced and loud | |
| Triadic 2 | #8FACAF | Even thirds — balanced and loud | |
| Tetradic | #AFA28F | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#af8fac text on a black background
contrast 7.35:1
#af8fac text on a white background
contrast 2.86:1
CSS3 live lab
The quick brown fox
color: #af8fac;
background-color: #af8fac;
Glowing headline
text-shadow: 2px 2px 8px #af8fac;
Soft neon halo
text-shadow: 0 0 14px rgba(175, 143, 172, 0.45);
box-shadow: 0 12px 32px -8px rgba(175, 143, 172, 0.45);
border: 3px solid #af8fac; background: linear-gradient(135deg, #af8fac, #AF8F97);
Monochromatic scale
Palettes built from #af8fac
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: Lilac (#c8a2c8) — ΔE2000 6.9 away, with its history, psychology and brand usage.
#af8fac 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.
#af8fac, answered
What color is #af8fac?
#af8fac is a balanced soft magenta / pink, closest to Rosy Brown (ΔE2000 11.5). It sits at 306° on the hue wheel with 17% saturation and 62% lightness, which reads as neutral.
What is the RGB value of #af8fac?
rgb(175, 143, 172) — 175 red, 143 green and 172 blue out of 255, or 68.6% / 56.1% / 67.5% by channel.
Is #af8fac a light or a dark color?
It is a mid-tone. Relative luminance is 0.3174 and perceived brightness is 61%, so black text on it reaches 7.35:1.
Should I use black or white text on #af8fac?
Black. It scores 7.35:1 against #af8fac, versus 2.86:1 for white — AAA at any size.
What is the complementary color of #af8fac?
#8FAF92 sits directly opposite on the wheel. Softer options are the split-complements #9CAF8F and #8FAFA2, which give the same contrast with far less vibration.
What colors go well with #af8fac?
For interface work: #F9F6F8 as the surface, #DDCFDC for borders, #866082 for secondary text, #577B51 as an accent and #4A3548 for hover and pressed states. For a palette, the analogous pair #A28FAF and #AF8F9C stays calm, while #8FAF92 is the loudest partner.
What is #af8fac in CMYK for printing?
cmyk(0%, 18%, 2%, 31%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #af8fac warm or cool?
Neutral — it scores 49 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF8FA0; nudged cooler, #A78DB1.