Skip to content

#ac8fef

a light, electric violet · cool · closest name: Medium Purple

RGB
172, 143, 239
HSL
258°, 75%, 75%
CMYK
28, 40, 0, 6
Luminance
0.3465

At a glance

Every number on this page in one read: what #ac8fef is made of, how bright it looks, and which way it leans.

Hex
#ac8fef
Hue
258°
violet
Saturation
75%
electric
Lightness
75%
light
Brightness
94%
HSV value
Perceived
65%
weighted brightness
Luminance
0.3465
WCAG relative
Temperature
Cool
73/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
7.93:1
Closest name
Medium Purple
ΔE2000 9.5
Where it sits
Hue258° of 360°
Saturation75%
Lightness75%
Temperature
Warm ← → Cool73% cool

Reads cool. Warm and cool siblings keep the same lightness, so you can swap one in without redoing your contrast maths.

Every format

HEX#ac8fef
RGBrgb(172, 143, 239)
HSLhsl(258, 75%, 75%)
CMYKcmyk(28%, 40%, 0%, 6%)
LABlab(65.5 30.9 -44.5)
LCHlch(65.5 54.1 304.8)
OKLCHoklch(0.715 0.139 296.6)
Decimal11309039
Display P3color(display-p3 0.675 0.561 0.937)

Copy-ready code

/* CSS */
color: #ac8fef;
background-color: #ac8fef;
/* Tailwind (arbitrary) */
class="text-[#ac8fef] bg-[#ac8fef]"
/* SCSS */
$brand: #ac8fef;
/* SwiftUI */
Color(red: 0.675, green: 0.561, blue: 0.937)
/* Android */
Color.parseColor("#ac8fef")
/* Flutter */
Color(0xFFAC8FEF)
/* Python / OpenCV (BGR) */
(239, 143, 172)

Best text color

Only one of black and white can be right. This is the one, with the number that proves it.

Readable at a glance#000000 on #ac8fef · 7.93:1
Use #000000AAA at every size.
Aa
White text · 2.65:1
AA fail · AA large fail · AAA fail
Aa
Black text · 7.93:1 · recommended
AA pass · AA large pass · AAA pass
Reading the other direction: #ac8fef as text scores 2.65:1 on white and 7.93:1 on black.

Accessibility — WCAG contrast

Aa
#ac8fef on white: 2.65:1
AA ✗ fail · AA-large · AAA
Aa
#ac8fef on black: 7.93:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #749FF3
deuteranopia · #799EED
tritanopia · #9EA0B4

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ac8fef 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.

#F6F3FC
#ECE7F9
#D5C8F4
#ac8fef
#926CEA
#6D3BE3
#561FD6
#4819B3
#39148F
#2C1367
#1C0C41
Base = 300Lightest = 50 · #F6F3FCDarkest = 950 · #1C0C41
:root {
  --brand-50: #F6F3FC;
  --brand-100: #ECE7F9;
  --brand-200: #D5C8F4;
  --brand-300: #ac8fef;
  --brand-400: #926CEA;
  --brand-500: #6D3BE3;
  --brand-600: #561FD6;
  --brand-700: #4819B3;
  --brand-800: #39148F;
  --brand-900: #2C1367;
  --brand-950: #1C0C41;
  --brand: #ac8fef;
  --brand-ink: #000000;
}

Colors that work with #ac8fef

Not a palette — a role sheet. Each swatch answers one question you will hit while building the component.

Text on it#000000
Black wins here
Surface#F6F4FA
Tinted page background
Border#CDC0ED
Hairlines and dividers
Muted text#634B9B
Captions on the surface
Accent#AEB715
Second voice, not a rival
Dark variant#2D1070
Hover, pressed, headers
Light variant#EEE9FC
Selected rows, tints
Dark surface#191424
Dark-mode background
Light mode
Everything in its place

Surface, border, heading and body all derive from this one hue, so the screen stays coherent without a second palette.

Primary actionSecondaryBadge
Dark mode
Same hue, inverted

Lightness flips, hue holds. The accent stays the anchor in both themes.

Primary actionSecondaryAccent

How to use #ac8fef

Derived from its contrast, chroma and lightness — not from taste.

Works well for
  • 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
Use with care
  • 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#D2EF8F
Analogous left#8FA2EF
Analogous right#DC8FEF
Split-complement 1#EFDC8F
Split-complement 2#A2EF8F
Triadic 1#EFAC8F
Triadic 2#8FEFAC
Tetradic#EF8FA2

RGB percentages

Red67.5%
Green56.1%
Blue93.7%

CMYK percentages

Cyan28.0%
Magenta40.2%
Yellow0.0%
Key (black)6.3%

Color previews

#ac8fef text on a black background

contrast 7.93:1

Card sample

#ac8fef text on a white background

contrast 2.65:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #ac8fef;
Background color
Panel with #ac8fef background
background-color: #ac8fef;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #ac8fef;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(172, 143, 239, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(172, 143, 239, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ac8fef;
background: linear-gradient(135deg, #ac8fef, #EC8FEF);

Monochromatic scale

Palettes built from #ac8fef

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.

#ac8fef in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
Creative toolsFintechBeautyLuxury
Common UI roles
SurfacesBadgesHighlightsEmpty states
Print note

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#ac8fef, answered

What color is #ac8fef?

#ac8fef is a light electric violet, closest to Medium Purple (ΔE2000 9.5). It sits at 258° on the hue wheel with 75% saturation and 75% lightness, which reads as cool.

What is the RGB value of #ac8fef?

rgb(172, 143, 239) — 172 red, 143 green and 239 blue out of 255, or 67.5% / 56.1% / 93.7% by channel.

Is #ac8fef a light or a dark color?

It is a mid-tone. Relative luminance is 0.3465 and perceived brightness is 65%, so black text on it reaches 7.93:1.

Should I use black or white text on #ac8fef?

Black. It scores 7.93:1 against #ac8fef, versus 2.65:1 for white — AAA at any size.

What is the complementary color of #ac8fef?

#D2EF8F sits directly opposite on the wheel. Softer options are the split-complements #EFDC8F and #A2EF8F, which give the same contrast with far less vibration.

What colors go well with #ac8fef?

For interface work: #F6F4FA as the surface, #CDC0ED for borders, #634B9B for secondary text, #AEB715 as an accent and #2D1070 for hover and pressed states. For a palette, the analogous pair #8FA2EF and #DC8FEF stays calm, while #D2EF8F is the loudest partner.

What is #ac8fef in CMYK for printing?

cmyk(28%, 40%, 0%, 6%). 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 #ac8fef warm or cool?

Cool — it scores 73 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #CF8FEF; nudged cooler, #8E94F0.

Work with #ac8fef in the Color Lab