#af79ab
a balanced, soft magenta / pink · neutral · closest name: Orchid
At a glance
Every number on this page in one read: what #af79ab 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 | #af79ab |
| RGB | rgb(175, 121, 171) |
| HSL | hsl(304, 25%, 58%) |
| CMYK | cmyk(0%, 31%, 2%, 31%) |
| LAB | lab(57.8 29.3 -18.2) |
| LCH | lch(57.8 34.5 328.2) |
| OKLCH | oklch(0.648 0.096 329.2) |
| Decimal | 11499947 |
| Display P3 | color(display-p3 0.686 0.475 0.671) |
Copy-ready code
/* CSS */
color: #af79ab;
background-color: #af79ab;
/* Tailwind (arbitrary) */
class="text-[#af79ab] bg-[#af79ab]"
/* SCSS */
$brand: #af79ab;
/* SwiftUI */
Color(red: 0.686, green: 0.475, blue: 0.671)
/* Android */
Color.parseColor("#af79ab")
/* Flutter */
Color(0xFFAF79AB)
/* Python / OpenCV (BGR) */
(171, 121, 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. #af79ab 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: #F9F6F9;
--brand-100: #F3EDF2;
--brand-200: #E5D6E4;
--brand-300: #D5B9D3;
--brand-400: #C096BD;
--brand-500: #af79ab;
--brand-600: #995C95;
--brand-700: #804C7C;
--brand-800: #663D63;
--brand-900: #4B2F49;
--brand-950: #2F1D2E;
--brand: #af79ab;
--brand-ink: #000000;
}Colors that work with #af79ab
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 #af79ab
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 | #79AF7D | Directly opposite — maximum tension | |
| Analogous left | #9879AF | Neighbour, quieter | |
| Analogous right | #AF7990 | Neighbour, quieter | |
| Split-complement 1 | #90AF79 | Contrast without the clash | |
| Split-complement 2 | #79AF98 | Contrast without the clash | |
| Triadic 1 | #ABAF79 | Even thirds — balanced and loud | |
| Triadic 2 | #79ABAF | Even thirds — balanced and loud | |
| Tetradic | #AF9879 | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#af79ab text on a black background
contrast 6.15:1
#af79ab text on a white background
contrast 3.42:1
CSS3 live lab
The quick brown fox
color: #af79ab;
background-color: #af79ab;
Glowing headline
text-shadow: 2px 2px 8px #af79ab;
Soft neon halo
text-shadow: 0 0 14px rgba(175, 121, 171, 0.45);
box-shadow: 0 12px 32px -8px rgba(175, 121, 171, 0.45);
border: 3px solid #af79ab; background: linear-gradient(135deg, #af79ab, #AF7987);
Monochromatic scale
Palettes built from #af79ab
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: Orchid (#da70d6) — ΔE2000 10.4 away, with its history, psychology and brand usage.
#af79ab 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.
#af79ab, answered
What color is #af79ab?
#af79ab is a balanced soft magenta / pink, closest to Orchid (ΔE2000 10.4). It sits at 304° on the hue wheel with 25% saturation and 58% lightness, which reads as neutral.
What is the RGB value of #af79ab?
rgb(175, 121, 171) — 175 red, 121 green and 171 blue out of 255, or 68.6% / 47.5% / 67.1% by channel.
Is #af79ab a light or a dark color?
It is a mid-tone. Relative luminance is 0.2573 and perceived brightness is 57%, so black text on it reaches 6.15:1.
Should I use black or white text on #af79ab?
Black. It scores 6.15:1 against #af79ab, versus 3.42:1 for white — AA at any size.
What is the complementary color of #af79ab?
#79AF7D sits directly opposite on the wheel. Softer options are the split-complements #90AF79 and #79AF98, which give the same contrast with far less vibration.
What colors go well with #af79ab?
For interface work: #F9F5F9 as the surface, #E0CCDF for borders, #90568B for secondary text, #538448 as an accent and #50304D for hover and pressed states. For a palette, the analogous pair #9879AF and #AF7990 stays calm, while #79AF7D is the loudest partner.
What is #af79ab in CMYK for printing?
cmyk(0%, 31%, 2%, 31%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #af79ab warm or cool?
Neutral — it scores 48 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AF7997; nudged cooler, #A077B1.