#af88fe
a light, electric violet · cool · closest name: Medium Purple
At a glance
Every number on this page in one read: what #af88fe 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 | #af88fe |
| RGB | rgb(175, 136, 254) |
| HSL | hsl(260, 98%, 77%) |
| CMYK | cmyk(31%, 47%, 0%, 0%) |
| LAB | lab(64.9 39.3 -53.6) |
| LCH | lch(64.9 66.5 306.2) |
| OKLCH | oklch(0.713 0.170 297.2) |
| Decimal | 11503870 |
| Display P3 | color(display-p3 0.686 0.533 0.996) |
Copy-ready code
/* CSS */
color: #af88fe;
background-color: #af88fe;
/* Tailwind (arbitrary) */
class="text-[#af88fe] bg-[#af88fe]"
/* SCSS */
$brand: #af88fe;
/* SwiftUI */
Color(red: 0.686, green: 0.533, blue: 0.996)
/* Android */
Color.parseColor("#af88fe")
/* Flutter */
Color(0xFFAF88FE)
/* Python / OpenCV (BGR) */
(254, 136, 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. #af88fe is pinned to step 300; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.
:root {
--brand-50: #F5F1FD;
--brand-100: #ECE3FC;
--brand-200: #D4C1FB;
--brand-300: #af88fe;
--brand-400: #8F58FE;
--brand-500: #6921FD;
--brand-600: #5102F3;
--brand-700: #4402CA;
--brand-800: #3601A2;
--brand-900: #2A0675;
--brand-950: #1A0449;
--brand: #af88fe;
--brand-ink: #000000;
}Colors that work with #af88fe
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 #af88fe
Derived from its contrast, chroma and lightness — not from taste.
- ✓Text and icons on dark surfaces
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Card and section backgrounds
- ✓Brand accents, badges and data highlights
- ⚠Text of any size on white — fails WCAG AA
- ⚠Full-page backgrounds — tiring over long sessions
- ⚠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 | #D7FE88 | Directly opposite — maximum tension | |
| Analogous left | #889CFE | Neighbour, quieter | |
| Analogous right | #EA88FE | Neighbour, quieter | |
| Split-complement 1 | #FEEA88 | Contrast without the clash | |
| Split-complement 2 | #9CFE88 | Contrast without the clash | |
| Triadic 1 | #FEAF88 | Even thirds — balanced and loud | |
| Triadic 2 | #88FEAF | Even thirds — balanced and loud | |
| Tetradic | #FE889C | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#af88fe text on a black background
contrast 7.78:1
#af88fe text on a white background
contrast 2.70:1
CSS3 live lab
The quick brown fox
color: #af88fe;
background-color: #af88fe;
Glowing headline
text-shadow: 2px 2px 8px #af88fe;
Soft neon halo
text-shadow: 0 0 14px rgba(175, 136, 254, 0.45);
box-shadow: 0 12px 32px -8px rgba(175, 136, 254, 0.45);
border: 3px solid #af88fe; background: linear-gradient(135deg, #af88fe, #FE88FE);
Monochromatic scale
Palettes built from #af88fe
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: Periwinkle Blue (#8f99fb) — ΔE2000 9.5 away, with its history, psychology and brand usage.
#af88fe in the real world
Where a color in this family tends to land, and the interface roles it is usually asked to play.
Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.
#af88fe, answered
What color is #af88fe?
#af88fe is a light electric violet, closest to Medium Purple (ΔE2000 8.8). It sits at 260° on the hue wheel with 98% saturation and 77% lightness, which reads as cool.
What is the RGB value of #af88fe?
rgb(175, 136, 254) — 175 red, 136 green and 254 blue out of 255, or 68.6% / 53.3% / 99.6% by channel.
Is #af88fe a light or a dark color?
It is a mid-tone. Relative luminance is 0.3388 and perceived brightness is 65%, so black text on it reaches 7.78:1.
Should I use black or white text on #af88fe?
Black. It scores 7.78:1 against #af88fe, versus 2.70:1 for white — AAA at any size.
What is the complementary color of #af88fe?
#D7FE88 sits directly opposite on the wheel. Softer options are the split-complements #FEEA88 and #9CFE88, which give the same contrast with far less vibration.
What colors go well with #af88fe?
For interface work: #F6F4FA as the surface, #CFC0ED for borders, #654B9B for secondary text, #BBCC00 as an accent and #2A017E for hover and pressed states. For a palette, the analogous pair #889CFE and #EA88FE stays calm, while #D7FE88 is the loudest partner.
What is #af88fe in CMYK for printing?
cmyk(31%, 47%, 0%, 0%). This is a screen-to-ink approximation — a color this saturated sits outside most CMYK gamuts and will print duller than it looks here.
Is #af88fe warm or cool?
Cool — it scores 72 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DA88FE; nudged cooler, #878CFF.