#af2db2
a dark, vivid magenta / pink · neutral · closest name: Dark Orchid
At a glance
Every number on this page in one read: what #af2db2 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 | #af2db2 |
| RGB | rgb(175, 45, 178) |
| HSL | hsl(299, 60%, 44%) |
| CMYK | cmyk(2%, 75%, 0%, 30%) |
| LAB | lab(44.5 66.4 -42.9) |
| LCH | lch(44.5 79.0 327.1) |
| OKLCH | oklch(0.551 0.219 327.1) |
| Decimal | 11480498 |
| Display P3 | color(display-p3 0.686 0.176 0.698) |
Copy-ready code
/* CSS */
color: #af2db2;
background-color: #af2db2;
/* Tailwind (arbitrary) */
class="text-[#af2db2] bg-[#af2db2]"
/* SCSS */
$brand: #af2db2;
/* SwiftUI */
Color(red: 0.686, green: 0.176, blue: 0.698)
/* Android */
Color.parseColor("#af2db2")
/* Flutter */
Color(0xFFAF2DB2)
/* Python / OpenCV (BGR) */
(178, 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. #af2db2 is pinned to step 700; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #FBF4FB;
--brand-100: #F6E9F7;
--brand-200: #EECCEF;
--brand-300: #E7A5E8;
--brand-400: #DB79DD;
--brand-500: #CF4CD2;
--brand-600: #C031C3;
--brand-700: #af2db2;
--brand-800: #802182;
--brand-900: #5D1C5F;
--brand-950: #3A113B;
--brand: #af2db2;
--brand-ink: #ffffff;
}Colors that work with #af2db2
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 #af2db2
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
- ✓Headers, footers and dark-mode surfaces
- ✓Brand accents, badges and data highlights
- ⚠Full-page backgrounds — tiring over long sessions
- ⚠Black text placed on it
- ⚠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 | #30B22D | Directly opposite — maximum tension | |
| Analogous left | #6C2DB2 | Neighbour, quieter | |
| Analogous right | #B22D73 | Neighbour, quieter | |
| Split-complement 1 | #73B22D | Contrast without the clash | |
| Split-complement 2 | #2DB26C | Contrast without the clash | |
| Triadic 1 | #B2AF2D | Even thirds — balanced and loud | |
| Triadic 2 | #2DB2AF | Even thirds — balanced and loud | |
| Tetradic | #B26C2D | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#af2db2 text on a black background
contrast 3.84:1
#af2db2 text on a white background
contrast 5.47:1
CSS3 live lab
The quick brown fox
color: #af2db2;
background-color: #af2db2;
Glowing headline
text-shadow: 2px 2px 8px #af2db2;
Soft neon halo
text-shadow: 0 0 14px rgba(175, 45, 178, 0.45);
box-shadow: 0 12px 32px -8px rgba(175, 45, 178, 0.45);
border: 3px solid #af2db2; background: linear-gradient(135deg, #af2db2, #B22D5C);
Monochromatic scale
Palettes built from #af2db2
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 9.6 away, with its history, psychology and brand usage.
#af2db2 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.
#af2db2, answered
What color is #af2db2?
#af2db2 is a dark vivid magenta / pink, closest to Dark Orchid (ΔE2000 6.6). It sits at 299° on the hue wheel with 60% saturation and 44% lightness, which reads as neutral.
What is the RGB value of #af2db2?
rgb(175, 45, 178) — 175 red, 45 green and 178 blue out of 255, or 68.6% / 17.6% / 69.8% by channel.
Is #af2db2 a light or a dark color?
It is a dark color. Relative luminance is 0.1421 and perceived brightness is 46%, so white text on it reaches 5.47:1.
Should I use black or white text on #af2db2?
White. It scores 5.47:1 against #af2db2, versus 3.84:1 for black — AA at any size.
What is the complementary color of #af2db2?
#30B22D sits directly opposite on the wheel. Softer options are the split-complements #73B22D and #2DB26C, which give the same contrast with far less vibration.
What colors go well with #af2db2?
For interface work: #FAF4FA as the surface, #ECC0ED for borders, #994B9B for secondary text, #48A626 as an accent and #641A66 for hover and pressed states. For a palette, the analogous pair #6C2DB2 and #B22D73 stays calm, while #30B22D is the loudest partner.
What is #af2db2 in CMYK for printing?
cmyk(2%, 75%, 0%, 30%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #af2db2 warm or cool?
Neutral — it scores 51 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #B22D84; nudged cooler, #7F2BB4.