#af2dc6
a balanced, vivid magenta / pink · neutral · closest name: Dark Orchid
At a glance
Every number on this page in one read: what #af2dc6 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 | #af2dc6 |
| RGB | rgb(175, 45, 198) |
| HSL | hsl(291, 63%, 48%) |
| CMYK | cmyk(12%, 77%, 0%, 22%) |
| LAB | lab(45.7 69.8 -52.7) |
| LCH | lch(45.7 87.4 323.0) |
| OKLCH | oklch(0.563 0.235 321.0) |
| Decimal | 11480518 |
| Display P3 | color(display-p3 0.686 0.176 0.776) |
Copy-ready code
/* CSS */
color: #af2dc6;
background-color: #af2dc6;
/* Tailwind (arbitrary) */
class="text-[#af2dc6] bg-[#af2dc6]"
/* SCSS */
$brand: #af2dc6;
/* SwiftUI */
Color(red: 0.686, green: 0.176, blue: 0.776)
/* Android */
Color.parseColor("#af2dc6")
/* Flutter */
Color(0xFFAF2DC6)
/* Python / OpenCV (BGR) */
(198, 45, 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. #af2dc6 is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #FAF4FB;
--brand-100: #F5E8F7;
--brand-200: #EBCBF0;
--brand-300: #E0A4EA;
--brand-400: #D076E0;
--brand-500: #C048D5;
--brand-600: #af2dc6;
--brand-700: #9326A6;
--brand-800: #761E85;
--brand-900: #561A61;
--brand-950: #36103C;
--brand: #af2dc6;
--brand-ink: #ffffff;
}Colors that work with #af2dc6
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 #af2dc6
Derived from its contrast, chroma and lightness — not from taste.
- ✓Body text and links on white
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Brand accents, badges and data highlights
- ⚠Full-page backgrounds — tiring over long sessions
- ⚠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 | #44C62D | Directly opposite — maximum tension | |
| Analogous left | #622DC6 | Neighbour, quieter | |
| Analogous right | #C62D90 | Neighbour, quieter | |
| Split-complement 1 | #90C62D | Contrast without the clash | |
| Split-complement 2 | #2DC662 | Contrast without the clash | |
| Triadic 1 | #C6AF2D | Even thirds — balanced and loud | |
| Triadic 2 | #2DC6AF | Even thirds — balanced and loud | |
| Tetradic | #C6622D | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#af2dc6 text on a black background
contrast 4.01:1
#af2dc6 text on a white background
contrast 5.23:1
CSS3 live lab
The quick brown fox
color: #af2dc6;
background-color: #af2dc6;
Glowing headline
text-shadow: 2px 2px 8px #af2dc6;
Soft neon halo
text-shadow: 0 0 14px rgba(175, 45, 198, 0.45);
box-shadow: 0 12px 32px -8px rgba(175, 45, 198, 0.45);
border: 3px solid #af2dc6; background: linear-gradient(135deg, #af2dc6, #C62D77);
Monochromatic scale
Palettes built from #af2dc6
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: Plum (#8e4585) — ΔE2000 12.1 away, with its history, psychology and brand usage.
#af2dc6 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.
#af2dc6, answered
What color is #af2dc6?
#af2dc6 is a balanced vivid magenta / pink, closest to Dark Orchid (ΔE2000 4.4). It sits at 291° on the hue wheel with 63% saturation and 48% lightness, which reads as neutral.
What is the RGB value of #af2dc6?
rgb(175, 45, 198) — 175 red, 45 green and 198 blue out of 255, or 68.6% / 17.6% / 77.6% by channel.
Is #af2dc6 a light or a dark color?
It is a dark color. Relative luminance is 0.1507 and perceived brightness is 48%, so white text on it reaches 5.23:1.
Should I use black or white text on #af2dc6?
White. It scores 5.23:1 against #af2dc6, versus 4.01:1 for black — AA at any size.
What is the complementary color of #af2dc6?
#44C62D sits directly opposite on the wheel. Softer options are the split-complements #90C62D and #2DC662, which give the same contrast with far less vibration.
What colors go well with #af2dc6?
For interface work: #F9F4FA as the surface, #E6C0ED for borders, #8F4B9B for secondary text, #58AA22 as an accent and #5C1868 for hover and pressed states. For a palette, the analogous pair #622DC6 and #C62D90 stays calm, while #44C62D is the loudest partner.
What is #af2dc6 in CMYK for printing?
cmyk(12%, 77%, 0%, 22%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #af2dc6 warm or cool?
Neutral — it scores 55 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C62DA5; nudged cooler, #772AC8.