#af7c9d
a balanced, soft magenta / pink · warm · closest name: Pale Violet Red
At a glance
Every number on this page in one read: what #af7c9d 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 | #af7c9d |
| RGB | rgb(175, 124, 157) |
| HSL | hsl(321, 24%, 59%) |
| CMYK | cmyk(0%, 29%, 10%, 31%) |
| LAB | lab(58.0 25.1 -9.8) |
| LCH | lch(58.0 26.9 338.7) |
| OKLCH | oklch(0.648 0.077 340.5) |
| Decimal | 11500701 |
| Display P3 | color(display-p3 0.686 0.486 0.616) |
Copy-ready code
/* CSS */
color: #af7c9d;
background-color: #af7c9d;
/* Tailwind (arbitrary) */
class="text-[#af7c9d] bg-[#af7c9d]"
/* SCSS */
$brand: #af7c9d;
/* SwiftUI */
Color(red: 0.686, green: 0.486, blue: 0.616)
/* Android */
Color.parseColor("#af7c9d")
/* Flutter */
Color(0xFFAF7C9D)
/* Python / OpenCV (BGR) */
(157, 124, 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. #af7c9d 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: #F9F6F8;
--brand-100: #F3EDF1;
--brand-200: #E5D7E0;
--brand-300: #D4B9CB;
--brand-400: #BF96B1;
--brand-500: #af7c9d;
--brand-600: #985D83;
--brand-700: #7F4D6D;
--brand-800: #653E57;
--brand-900: #4B3041;
--brand-950: #2F1E29;
--brand: #af7c9d;
--brand-ink: #000000;
}Colors that work with #af7c9d
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 #af7c9d
Derived from its contrast, chroma and lightness — not from taste.
- ✓Headings from 24px up on white
- ✓Text and icons on dark surfaces
- ✓Charts, tags and secondary surfaces
- ✓Brand accents, badges and data highlights
- ⚠Small text on white — under 4.5:1
- ⚠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 | #7CAF8E | Directly opposite — maximum tension | |
| Analogous left | #A77CAF | Neighbour, quieter | |
| Analogous right | #AF7C83 | Neighbour, quieter | |
| Split-complement 1 | #83AF7C | Contrast without the clash | |
| Split-complement 2 | #7CAFA7 | Contrast without the clash | |
| Triadic 1 | #9DAF7C | Even thirds — balanced and loud | |
| Triadic 2 | #7C9DAF | Even thirds — balanced and loud | |
| Tetradic | #AFA77C | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#af7c9d text on a black background
contrast 6.19:1
#af7c9d text on a white background
contrast 3.39:1
CSS3 live lab
The quick brown fox
color: #af7c9d;
background-color: #af7c9d;
Glowing headline
text-shadow: 2px 2px 8px #af7c9d;
Soft neon halo
text-shadow: 0 0 14px rgba(175, 124, 157, 0.45);
box-shadow: 0 12px 32px -8px rgba(175, 124, 157, 0.45);
border: 3px solid #af7c9d; background: linear-gradient(135deg, #af7c9d, #AF7D7C);
Monochromatic scale
Palettes built from #af7c9d
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: Dusty Rose (#b76e79) — ΔE2000 10.7 away, with its history, psychology and brand usage.
#af7c9d 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.
#af7c9d, answered
What color is #af7c9d?
#af7c9d is a balanced soft magenta / pink, closest to Pale Violet Red (ΔE2000 10.5). It sits at 321° on the hue wheel with 24% saturation and 59% lightness, which reads as warm.
What is the RGB value of #af7c9d?
rgb(175, 124, 157) — 175 red, 124 green and 157 blue out of 255, or 68.6% / 48.6% / 61.6% by channel.
Is #af7c9d a light or a dark color?
It is a mid-tone. Relative luminance is 0.2596 and perceived brightness is 57%, so black text on it reaches 6.19:1.
Should I use black or white text on #af7c9d?
Black. It scores 6.19:1 against #af7c9d, versus 3.39:1 for white — AA at any size.
What is the complementary color of #af7c9d?
#7CAF8E sits directly opposite on the wheel. Softer options are the split-complements #83AF7C and #7CAFA7, which give the same contrast with far less vibration.
What colors go well with #af7c9d?
For interface work: #F9F5F8 as the surface, #E0CCD9 for borders, #8F577B for secondary text, #49834F as an accent and #4F3044 for hover and pressed states. For a palette, the analogous pair #A77CAF and #AF7C83 stays calm, while #7CAF8E is the loudest partner.
What is #af7c9d in CMYK for printing?
cmyk(0%, 29%, 10%, 31%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #af7c9d warm or cool?
Warm — it scores 42 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF7C8A; nudged cooler, #B07AB1.