Skip to content

#ac6cfe

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

RGB
172, 108, 254
HSL
266°, 99%, 71%
CMYK
32, 58, 0, 0
Luminance
0.2665

At a glance

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

Hex
#ac6cfe
Hue
266°
violet
Saturation
99%
electric
Lightness
71%
light
Brightness
100%
HSV value
Perceived
60%
weighted brightness
Luminance
0.2665
WCAG relative
Temperature
Cool
69/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
6.33:1
Closest name
Medium Purple
ΔE2000 6.3
Where it sits
Hue266° of 360°
Saturation99%
Lightness71%
Temperature
Warm ← → Cool69% 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#ac6cfe
RGBrgb(172, 108, 254)
HSLhsl(266, 99%, 71%)
CMYKcmyk(32%, 58%, 0%, 0%)
LABlab(58.6 53.7 -63.6)
LCHlch(58.6 83.3 310.2)
OKLCHoklch(0.666 0.210 301.1)
Decimal11300094
Display P3color(display-p3 0.675 0.424 0.996)

Copy-ready code

/* CSS */
color: #ac6cfe;
background-color: #ac6cfe;
/* Tailwind (arbitrary) */
class="text-[#ac6cfe] bg-[#ac6cfe]"
/* SCSS */
$brand: #ac6cfe;
/* SwiftUI */
Color(red: 0.675, green: 0.424, blue: 0.996)
/* Android */
Color.parseColor("#ac6cfe")
/* Flutter */
Color(0xFFAC6CFE)
/* Python / OpenCV (BGR) */
(254, 108, 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 #ac6cfe · 6.33:1
Use #000000AA at every size, AAA for large text only.
Aa
White text · 3.32:1
AA fail · AA large pass · AAA fail
Aa
Black text · 6.33:1 · recommended
AA pass · AA large pass · AAA fail
Reading the other direction: #ac6cfe as text scores 3.32:1 on white and 6.33:1 on black.

Accessibility — WCAG contrast

Aa
#ac6cfe on white: 3.32:1
AA ✗ fail · AA-large · AAA
Aa
#ac6cfe on black: 6.33:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #248CFF
deuteranopia · #428CFB
tritanopia · #9B8AAB

Color scale — 50 to 950

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

#F7F1FE
#EEE3FC
#DAC0FB
#C090FE
#ac6cfe
#8120FD
#6C02F3
#5A01CB
#4801A2
#360675
#220449
Base = 400Lightest = 50 · #F7F1FEDarkest = 950 · #220449
:root {
  --brand-50: #F7F1FE;
  --brand-100: #EEE3FC;
  --brand-200: #DAC0FB;
  --brand-300: #C090FE;
  --brand-400: #ac6cfe;
  --brand-500: #8120FD;
  --brand-600: #6C02F3;
  --brand-700: #5A01CB;
  --brand-800: #4801A2;
  --brand-900: #360675;
  --brand-950: #220449;
  --brand: #ac6cfe;
  --brand-ink: #000000;
}

Colors that work with #ac6cfe

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#F7F4FA
Tinted page background
Border#D3C0ED
Hairlines and dividers
Muted text#6E4B9B
Captions on the surface
Accent#A5CC00
Second voice, not a rival
Dark variant#38017F
Hover, pressed, headers
Light variant#F1E6FF
Selected rows, tints
Dark surface#1B1424
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 #ac6cfe

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

Works well for
  • 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
Use with care
  • 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#BEFE6C
Analogous left#6C75FE
Analogous right#F56CFE
Split-complement 1#FEF56C
Split-complement 2#75FE6C
Triadic 1#FEAC6C
Triadic 2#6CFEAC
Tetradic#FE6C75

RGB percentages

Red67.5%
Green42.4%
Blue99.6%

CMYK percentages

Cyan32.3%
Magenta57.5%
Yellow0.0%
Key (black)0.4%

Color previews

#ac6cfe text on a black background

contrast 6.33:1

Card sample

#ac6cfe text on a white background

contrast 3.32:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac6cfe

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.

#ac6cfe 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.

#ac6cfe, answered

What color is #ac6cfe?

#ac6cfe is a light electric violet, closest to Medium Purple (ΔE2000 6.3). It sits at 266° on the hue wheel with 99% saturation and 71% lightness, which reads as cool.

What is the RGB value of #ac6cfe?

rgb(172, 108, 254) — 172 red, 108 green and 254 blue out of 255, or 67.5% / 42.4% / 99.6% by channel.

Is #ac6cfe a light or a dark color?

It is a mid-tone. Relative luminance is 0.2665 and perceived brightness is 60%, so black text on it reaches 6.33:1.

Should I use black or white text on #ac6cfe?

Black. It scores 6.33:1 against #ac6cfe, versus 3.32:1 for white — AA at any size.

What is the complementary color of #ac6cfe?

#BEFE6C sits directly opposite on the wheel. Softer options are the split-complements #FEF56C and #75FE6C, which give the same contrast with far less vibration.

What colors go well with #ac6cfe?

For interface work: #F7F4FA as the surface, #D3C0ED for borders, #6E4B9B for secondary text, #A5CC00 as an accent and #38017F for hover and pressed states. For a palette, the analogous pair #6C75FE and #F56CFE stays calm, while #BEFE6C is the loudest partner.

What is #ac6cfe in CMYK for printing?

cmyk(32%, 58%, 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 #ac6cfe warm or cool?

Cool — it scores 69 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #E26CFE; nudged cooler, #766BFF.

Work with #ac6cfe in the Color Lab