#af8ec8
a light, soft violet · cool · closest name: Plum
At a glance
Every number on this page in one read: what #af8ec8 is made of, how bright it looks, and which way it leans.
Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.
Every format
| HEX | #af8ec8 |
| RGB | rgb(175, 142, 200) |
| HSL | hsl(274, 35%, 67%) |
| CMYK | cmyk(13%, 29%, 0%, 22%) |
| LAB | lab(63.9 23.4 -25.3) |
| LCH | lch(63.9 34.5 312.7) |
| OKLCH | oklch(0.698 0.090 310.0) |
| Decimal | 11505352 |
| Display P3 | color(display-p3 0.686 0.557 0.784) |
Copy-ready code
/* CSS */
color: #af8ec8;
background-color: #af8ec8;
/* Tailwind (arbitrary) */
class="text-[#af8ec8] bg-[#af8ec8]"
/* SCSS */
$brand: #af8ec8;
/* SwiftUI */
Color(red: 0.686, green: 0.557, blue: 0.784)
/* Android */
Color.parseColor("#af8ec8")
/* Flutter */
Color(0xFFAF8EC8)
/* Python / OpenCV (BGR) */
(200, 142, 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. #af8ec8 is pinned to step 400; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #F8F5F9;
--brand-100: #F0ECF4;
--brand-200: #DFD4E8;
--brand-300: #CAB4DA;
--brand-400: #af8ec8;
--brand-500: #9468B6;
--brand-600: #8050A5;
--brand-700: #6B4389;
--brand-800: #55356E;
--brand-900: #402A51;
--brand-950: #281A32;
--brand: #af8ec8;
--brand-ink: #000000;
}Colors that work with #af8ec8
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 #af8ec8
Derived from its contrast, chroma and lightness — not from taste.
- ✓Text and icons on dark surfaces
- ✓Charts, tags and secondary surfaces
- ✓Card and section backgrounds
- ✓Brand accents, badges and data highlights
- ⚠Text of any size on white — fails WCAG AA
- ⚠White 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 | #A7C88E | Directly opposite — maximum tension | |
| Analogous left | #928EC8 | Neighbour, quieter | |
| Analogous right | #C88EC4 | Neighbour, quieter | |
| Split-complement 1 | #C4C88E | Contrast without the clash | |
| Split-complement 2 | #8EC892 | Contrast without the clash | |
| Triadic 1 | #C8AF8E | Even thirds — balanced and loud | |
| Triadic 2 | #8EC8AF | Even thirds — balanced and loud | |
| Tetradic | #C8928E | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#af8ec8 text on a black background
contrast 7.53:1
#af8ec8 text on a white background
contrast 2.79:1
CSS3 live lab
The quick brown fox
color: #af8ec8;
background-color: #af8ec8;
Glowing headline
text-shadow: 2px 2px 8px #af8ec8;
Soft neon halo
text-shadow: 0 0 14px rgba(175, 142, 200, 0.45);
box-shadow: 0 12px 32px -8px rgba(175, 142, 200, 0.45);
border: 3px solid #af8ec8; background: linear-gradient(135deg, #af8ec8, #C88EBA);
Monochromatic scale
Palettes built from #af8ec8
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: Lilac (#c8a2c8) — ΔE2000 8.4 away, with its history, psychology and brand usage.
#af8ec8 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.
#af8ec8, answered
What color is #af8ec8?
#af8ec8 is a light soft violet, closest to Plum (ΔE2000 9.4). It sits at 274° on the hue wheel with 35% saturation and 67% lightness, which reads as cool.
What is the RGB value of #af8ec8?
rgb(175, 142, 200) — 175 red, 142 green and 200 blue out of 255, or 68.6% / 55.7% / 78.4% by channel.
Is #af8ec8 a light or a dark color?
It is a mid-tone. Relative luminance is 0.3263 and perceived brightness is 63%, so black text on it reaches 7.53:1.
Should I use black or white text on #af8ec8?
Black. It scores 7.53:1 against #af8ec8, versus 2.79:1 for white — AAA at any size.
What is the complementary color of #af8ec8?
#A7C88E sits directly opposite on the wheel. Softer options are the split-complements #C4C88E and #8EC892, which give the same contrast with far less vibration.
What colors go well with #af8ec8?
For interface work: #F8F5FA as the surface, #D8C8E4 for borders, #784B9A for secondary text, #758D3F as an accent and #432A56 for hover and pressed states. For a palette, the analogous pair #928EC8 and #C88EC4 stays calm, while #A7C88E is the loudest partner.
What is #af8ec8 in CMYK for printing?
cmyk(13%, 29%, 0%, 22%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.
Is #af8ec8 warm or cool?
Cool — it scores 64 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C48EC8; nudged cooler, #998CCA.