#ac5df3
a light, electric violet · cool · closest name: Medium Orchid
At a glance
Every number on this page in one read: what #ac5df3 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 | #ac5df3 |
| RGB | rgb(172, 93, 243) |
| HSL | hsl(272, 86%, 66%) |
| CMYK | cmyk(29%, 62%, 0%, 5%) |
| LAB | lab(55.1 58.8 -63.1) |
| LCH | lch(55.1 86.2 313.0) |
| OKLCH | oklch(0.639 0.219 305.3) |
| Decimal | 11296243 |
| Display P3 | color(display-p3 0.675 0.365 0.953) |
Copy-ready code
/* CSS */
color: #ac5df3;
background-color: #ac5df3;
/* Tailwind (arbitrary) */
class="text-[#ac5df3] bg-[#ac5df3]"
/* SCSS */
$brand: #ac5df3;
/* SwiftUI */
Color(red: 0.675, green: 0.365, blue: 0.953)
/* Android */
Color.parseColor("#ac5df3")
/* Flutter */
Color(0xFFAC5DF3)
/* Python / OpenCV (BGR) */
(243, 93, 172)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. #ac5df3 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: #F8F2FD;
--brand-100: #F0E5FA;
--brand-200: #DFC5F7;
--brand-300: #C997F7;
--brand-400: #ac5df3;
--brand-500: #942EF0;
--brand-600: #8011E4;
--brand-700: #6B0EBE;
--brand-800: #550B98;
--brand-900: #400D6E;
--brand-950: #280845;
--brand: #ac5df3;
--brand-ink: #000000;
}Colors that work with #ac5df3
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 #ac5df3
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
- ✓Card and section backgrounds
- ✓Brand accents, badges and data highlights
- ⚠Small text on white — under 4.5:1
- ⚠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 | #A4F35D | Directly opposite — maximum tension | |
| Analogous left | #615DF3 | Neighbour, quieter | |
| Analogous right | #F35DEF | Neighbour, quieter | |
| Split-complement 1 | #EFF35D | Contrast without the clash | |
| Split-complement 2 | #5DF361 | Contrast without the clash | |
| Triadic 1 | #F3AC5D | Even thirds — balanced and loud | |
| Triadic 2 | #5DF3AC | Even thirds — balanced and loud | |
| Tetradic | #F3615D | Fourth corner of the square scheme |
RGB percentages
CMYK percentages
Color previews
#ac5df3 text on a black background
contrast 5.61:1
#ac5df3 text on a white background
contrast 3.74:1
CSS3 live lab
The quick brown fox
color: #ac5df3;
background-color: #ac5df3;
Glowing headline
text-shadow: 2px 2px 8px #ac5df3;
Soft neon halo
text-shadow: 0 0 14px rgba(172, 93, 243, 0.45);
box-shadow: 0 12px 32px -8px rgba(172, 93, 243, 0.45);
border: 3px solid #ac5df3; background: linear-gradient(135deg, #ac5df3, #F35DD6);
Monochromatic scale
Palettes built from #ac5df3
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: Magenta (#ff00ff) — ΔE2000 12.5 away, with its history, psychology and brand usage.
#ac5df3 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.
#ac5df3, answered
What color is #ac5df3?
#ac5df3 is a light electric violet, closest to Medium Orchid (ΔE2000 6.3). It sits at 272° on the hue wheel with 86% saturation and 66% lightness, which reads as cool.
What is the RGB value of #ac5df3?
rgb(172, 93, 243) — 172 red, 93 green and 243 blue out of 255, or 67.5% / 36.5% / 95.3% by channel.
Is #ac5df3 a light or a dark color?
It is a mid-tone. Relative luminance is 0.2307 and perceived brightness is 56%, so black text on it reaches 5.61:1.
Should I use black or white text on #ac5df3?
Black. It scores 5.61:1 against #ac5df3, versus 3.74:1 for white — AA at any size.
What is the complementary color of #ac5df3?
#A4F35D sits directly opposite on the wheel. Softer options are the split-complements #EFF35D and #5DF361, which give the same contrast with far less vibration.
What colors go well with #ac5df3?
For interface work: #F8F4FA as the surface, #D7C0ED for borders, #754B9B for secondary text, #8FC10B as an accent and #430977 for hover and pressed states. For a palette, the analogous pair #615DF3 and #F35DEF stays calm, while #A4F35D is the loudest partner.
What is #ac5df3 in CMYK for printing?
cmyk(29%, 62%, 0%, 5%). 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 #ac5df3 warm or cool?
Cool — it scores 66 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #E35DF3; nudged cooler, #745BF5.