#af6ec2
a balanced, soft violet · neutral · closest name: Medium Orchid
At a glance
Every number on this page in one read: what #af6ec2 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 | #af6ec2 |
| RGB | rgb(175, 110, 194) |
| HSL | hsl(286, 41%, 60%) |
| CMYK | cmyk(10%, 43%, 0%, 24%) |
| LAB | lab(56.3 40.0 -33.7) |
| LCH | lch(56.3 52.3 319.9) |
| OKLCH | oklch(0.639 0.140 318.3) |
| Decimal | 11497154 |
| Display P3 | color(display-p3 0.686 0.431 0.761) |
Copy-ready code
/* CSS */
color: #af6ec2;
background-color: #af6ec2;
/* Tailwind (arbitrary) */
class="text-[#af6ec2] bg-[#af6ec2]"
/* SCSS */
$brand: #af6ec2;
/* SwiftUI */
Color(red: 0.686, green: 0.431, blue: 0.761)
/* Android */
Color.parseColor("#af6ec2")
/* Flutter */
Color(0xFFAF6EC2)
/* Python / OpenCV (BGR) */
(194, 110, 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. #af6ec2 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: #F2EBF5;
--brand-200: #E4D2EA;
--brand-300: #D3B0DE;
--brand-400: #BE89CD;
--brand-500: #af6ec2;
--brand-600: #9648AC;
--brand-700: #7D3C90;
--brand-800: #643073;
--brand-900: #4A2654;
--brand-950: #2E1835;
--brand: #af6ec2;
--brand-ink: #000000;
}Colors that work with #af6ec2
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 #af6ec2
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 | #81C26E | Directly opposite — maximum tension | |
| Analogous left | #856EC2 | Neighbour, quieter | |
| Analogous right | #C26EAB | Neighbour, quieter | |
| Split-complement 1 | #ABC26E | Contrast without the clash | |
| Split-complement 2 | #6EC285 | Contrast without the clash | |
| Triadic 1 | #C2AF6E | Even thirds — balanced and loud | |
| Triadic 2 | #6EC2AF | Even thirds — balanced and loud | |
| Tetradic | #C2856E | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#af6ec2 text on a black background
contrast 5.83:1
#af6ec2 text on a white background
contrast 3.60:1
CSS3 live lab
The quick brown fox
color: #af6ec2;
background-color: #af6ec2;
Glowing headline
text-shadow: 2px 2px 8px #af6ec2;
Soft neon halo
text-shadow: 0 0 14px rgba(175, 110, 194, 0.45);
box-shadow: 0 12px 32px -8px rgba(175, 110, 194, 0.45);
border: 3px solid #af6ec2; background: linear-gradient(135deg, #af6ec2, #C26E9D);
Monochromatic scale
Palettes built from #af6ec2
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 8 away, with its history, psychology and brand usage.
#af6ec2 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.
#af6ec2, answered
What color is #af6ec2?
#af6ec2 is a balanced soft violet, closest to Medium Orchid (ΔE2000 6.5). It sits at 286° on the hue wheel with 41% saturation and 60% lightness, which reads as neutral.
What is the RGB value of #af6ec2?
rgb(175, 110, 194) — 175 red, 110 green and 194 blue out of 255, or 68.6% / 43.1% / 76.1% by channel.
Is #af6ec2 a light or a dark color?
It is a mid-tone. Relative luminance is 0.2416 and perceived brightness is 56%, so black text on it reaches 5.83:1.
Should I use black or white text on #af6ec2?
Black. It scores 5.83:1 against #af6ec2, versus 3.60:1 for white — AA at any size.
What is the complementary color of #af6ec2?
#81C26E sits directly opposite on the wheel. Softer options are the split-complements #ABC26E and #6EC285, which give the same contrast with far less vibration.
What colors go well with #af6ec2?
For interface work: #F9F4FA as the surface, #DFC6E7 for borders, #894B9B for secondary text, #649438 as an accent and #4E265A for hover and pressed states. For a palette, the analogous pair #856EC2 and #C26EAB stays calm, while #81C26E is the loudest partner.
What is #af6ec2 in CMYK for printing?
cmyk(10%, 43%, 0%, 24%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #af6ec2 warm or cool?
Neutral — it scores 58 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C26EB6; nudged cooler, #906CC4.