#af5fb8
a balanced, soft magenta / pink · neutral · closest name: Medium Orchid
At a glance
Every number on this page in one read: what #af5fb8 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 | #af5fb8 |
| RGB | rgb(175, 95, 184) |
| HSL | hsl(294, 39%, 55%) |
| CMYK | cmyk(5%, 48%, 0%, 28%) |
| LAB | lab(52.7 46.0 -33.5) |
| LCH | lch(52.7 56.9 323.9) |
| OKLCH | oklch(0.611 0.155 323.4) |
| Decimal | 11493304 |
| Display P3 | color(display-p3 0.686 0.373 0.722) |
Copy-ready code
/* CSS */
color: #af5fb8;
background-color: #af5fb8;
/* Tailwind (arbitrary) */
class="text-[#af5fb8] bg-[#af5fb8]"
/* SCSS */
$brand: #af5fb8;
/* SwiftUI */
Color(red: 0.686, green: 0.373, blue: 0.722)
/* Android */
Color.parseColor("#af5fb8")
/* Flutter */
Color(0xFFAF5FB8)
/* Python / OpenCV (BGR) */
(184, 95, 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. #af5fb8 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: #F9F5FA;
--brand-100: #F3EBF4;
--brand-200: #E7D3E9;
--brand-300: #D8B1DC;
--brand-400: #C58ACB;
--brand-500: #af5fb8;
--brand-600: #A04BAA;
--brand-700: #853F8D;
--brand-800: #6B3271;
--brand-900: #4E2853;
--brand-950: #311934;
--brand: #af5fb8;
--brand-ink: #000000;
}Colors that work with #af5fb8
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 #af5fb8
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 | #68B85F | Directly opposite — maximum tension | |
| Analogous left | #825FB8 | Neighbour, quieter | |
| Analogous right | #B85F95 | Neighbour, quieter | |
| Split-complement 1 | #95B85F | Contrast without the clash | |
| Split-complement 2 | #5FB882 | Contrast without the clash | |
| Triadic 1 | #B8AF5F | Even thirds — balanced and loud | |
| Triadic 2 | #5FB8AF | Even thirds — balanced and loud | |
| Tetradic | #B8825F | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#af5fb8 text on a black background
contrast 5.15:1
#af5fb8 text on a white background
contrast 4.08:1
CSS3 live lab
The quick brown fox
color: #af5fb8;
background-color: #af5fb8;
Glowing headline
text-shadow: 2px 2px 8px #af5fb8;
Soft neon halo
text-shadow: 0 0 14px rgba(175, 95, 184, 0.45);
box-shadow: 0 12px 32px -8px rgba(175, 95, 184, 0.45);
border: 3px solid #af5fb8; background: linear-gradient(135deg, #af5fb8, #B85F86);
Monochromatic scale
Palettes built from #af5fb8
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 9.7 away, with its history, psychology and brand usage.
#af5fb8 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.
#af5fb8, answered
What color is #af5fb8?
#af5fb8 is a balanced soft magenta / pink, closest to Medium Orchid (ΔE2000 5.1). It sits at 294° on the hue wheel with 39% saturation and 55% lightness, which reads as neutral.
What is the RGB value of #af5fb8?
rgb(175, 95, 184) — 175 red, 95 green and 184 blue out of 255, or 68.6% / 37.3% / 72.2% by channel.
Is #af5fb8 a light or a dark color?
It is a mid-tone. Relative luminance is 0.2076 and perceived brightness is 53%, so black text on it reaches 5.15:1.
Should I use black or white text on #af5fb8?
Black. It scores 5.15:1 against #af5fb8, versus 4.08:1 for white — AA at any size.
What is the complementary color of #af5fb8?
#68B85F sits directly opposite on the wheel. Softer options are the split-complements #95B85F and #5FB882, which give the same contrast with far less vibration.
What colors go well with #af5fb8?
For interface work: #FAF4FA as the surface, #E3C6E6 for borders, #934B9B for secondary text, #59923A as an accent and #532758 for hover and pressed states. For a palette, the analogous pair #825FB8 and #B85F95 stays calm, while #68B85F is the loudest partner.
What is #af5fb8 in CMYK for printing?
cmyk(5%, 48%, 0%, 28%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #af5fb8 warm or cool?
Neutral — it scores 53 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B85FA0; nudged cooler, #8E5DBA.