#af5fe9
a balanced, electric violet · cool · closest name: Medium Orchid
At a glance
Every number on this page in one read: what #af5fe9 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 | #af5fe9 |
| RGB | rgb(175, 95, 233) |
| HSL | hsl(275, 76%, 64%) |
| CMYK | cmyk(25%, 59%, 0%, 9%) |
| LAB | lab(55.3 56.2 -57.3) |
| LCH | lch(55.3 80.3 314.4) |
| OKLCH | oklch(0.638 0.206 308.4) |
| Decimal | 11493353 |
| Display P3 | color(display-p3 0.686 0.373 0.914) |
Copy-ready code
/* CSS */
color: #af5fe9;
background-color: #af5fe9;
/* Tailwind (arbitrary) */
class="text-[#af5fe9] bg-[#af5fe9]"
/* SCSS */
$brand: #af5fe9;
/* SwiftUI */
Color(red: 0.686, green: 0.373, blue: 0.914)
/* Android */
Color.parseColor("#af5fe9")
/* Flutter */
Color(0xFFAF5FE9)
/* Python / OpenCV (BGR) */
(233, 95, 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. #af5fe9 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: #F8F3FC;
--brand-100: #F1E7F9;
--brand-200: #E1C8F4;
--brand-300: #CE9CF1;
--brand-400: #af5fe9;
--brand-500: #9C3AE4;
--brand-600: #891ED7;
--brand-700: #7219B3;
--brand-800: #5B148F;
--brand-900: #441368;
--brand-950: #2B0C41;
--brand: #af5fe9;
--brand-ink: #000000;
}Colors that work with #af5fe9
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 #af5fe9
Derived from its contrast, chroma and lightness — not from taste.
- ✓Headings from 24px up on white
- ✓Text and icons on dark surfaces
- ✓Primary buttons and calls to action
- ✓Focus rings, active and selected states
- ✓Brand accents, badges and data highlights
- ⚠Small text on white — under 4.5:1
- ⚠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 | #99E95F | Directly opposite — maximum tension | |
| Analogous left | #6A5FE9 | Neighbour, quieter | |
| Analogous right | #E95FDE | Neighbour, quieter | |
| Split-complement 1 | #DEE95F | Contrast without the clash | |
| Split-complement 2 | #5FE96A | Contrast without the clash | |
| Triadic 1 | #E9AF5F | Even thirds — balanced and loud | |
| Triadic 2 | #5FE9AF | Even thirds — balanced and loud | |
| Tetradic | #E96A5F | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#af5fe9 text on a black background
contrast 5.64:1
#af5fe9 text on a white background
contrast 3.73:1
CSS3 live lab
The quick brown fox
color: #af5fe9;
background-color: #af5fe9;
Glowing headline
text-shadow: 2px 2px 8px #af5fe9;
Soft neon halo
text-shadow: 0 0 14px rgba(175, 95, 233, 0.45);
box-shadow: 0 12px 32px -8px rgba(175, 95, 233, 0.45);
border: 3px solid #af5fe9; background: linear-gradient(135deg, #af5fe9, #E95FC7);
Monochromatic scale
Palettes built from #af5fe9
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 11.2 away, with its history, psychology and brand usage.
#af5fe9 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.
#af5fe9, answered
What color is #af5fe9?
#af5fe9 is a balanced electric violet, closest to Medium Orchid (ΔE2000 4.9). It sits at 275° on the hue wheel with 76% saturation and 64% lightness, which reads as cool.
What is the RGB value of #af5fe9?
rgb(175, 95, 233) — 175 red, 95 green and 233 blue out of 255, or 68.6% / 37.3% / 91.4% by channel.
Is #af5fe9 a light or a dark color?
It is a mid-tone. Relative luminance is 0.2318 and perceived brightness is 56%, so black text on it reaches 5.64:1.
Should I use black or white text on #af5fe9?
Black. It scores 5.64:1 against #af5fe9, versus 3.73:1 for white — AA at any size.
What is the complementary color of #af5fe9?
#99E95F sits directly opposite on the wheel. Softer options are the split-complements #DEE95F and #5FE96A, which give the same contrast with far less vibration.
What colors go well with #af5fe9?
For interface work: #F8F4FA as the surface, #DAC0ED for borders, #794B9B for secondary text, #82B814 as an accent and #470F70 for hover and pressed states. For a palette, the analogous pair #6A5FE9 and #E95FDE stays calm, while #99E95F is the loudest partner.
What is #af5fe9 in CMYK for printing?
cmyk(25%, 59%, 0%, 9%). 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 #af5fe9 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 #E25FE9; nudged cooler, #7B5DEB.