Skip to content

#ac7af9

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

RGB
172, 122, 249
HSL
264°, 91%, 73%
CMYK
31, 51, 0, 2
Luminance
0.2953

At a glance

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

Hex
#ac7af9
Hue
264°
violet
Saturation
91%
electric
Lightness
73%
light
Brightness
98%
HSV value
Perceived
62%
weighted brightness
Luminance
0.2953
WCAG relative
Temperature
Cool
70/100 cool
Color family
Violet
Tone
Electric
Best ink
Black
6.91:1
Closest name
Medium Purple
ΔE2000 6.3
Where it sits
Hue264° of 360°
Saturation91%
Lightness73%
Temperature
Warm ← → Cool70% 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#ac7af9
RGBrgb(172, 122, 249)
HSLhsl(264, 91%, 73%)
CMYKcmyk(31%, 51%, 0%, 2%)
LABlab(61.3 45.0 -56.7)
LCHlch(61.3 72.4 308.5)
OKLCHoklch(0.685 0.184 299.7)
Decimal11303673
Display P3color(display-p3 0.675 0.478 0.976)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac7af9 on white: 3.04:1
AA ✗ fail · AA-large · AAA
Aa
#ac7af9 on black: 6.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia · #4D94FD
deuteranopia · #5A93F6
tritanopia · #9C92AE

Color scale — 50 to 950

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

#F6F2FD
#EDE4FB
#D8C3F9
#ac7af9
#9A5EF8
#7928F5
#630BEA
#5209C3
#42079C
#320A71
#1F0646
Base = 300Lightest = 50 · #F6F2FDDarkest = 950 · #1F0646
:root {
  --brand-50: #F6F2FD;
  --brand-100: #EDE4FB;
  --brand-200: #D8C3F9;
  --brand-300: #ac7af9;
  --brand-400: #9A5EF8;
  --brand-500: #7928F5;
  --brand-600: #630BEA;
  --brand-700: #5209C3;
  --brand-800: #42079C;
  --brand-900: #320A71;
  --brand-950: #1F0646;
  --brand: #ac7af9;
  --brand-ink: #000000;
}

Colors that work with #ac7af9

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#D1C0ED
Hairlines and dividers
Muted text#6A4B9B
Captions on the surface
Accent#ACC804
Second voice, not a rival
Dark variant#33057A
Hover, pressed, headers
Light variant#F0E7FE
Selected rows, tints
Dark surface#1A1424
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 #ac7af9

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#C7F97A
Analogous left#7A87F9
Analogous right#EB7AF9
Split-complement 1#F9EB7A
Split-complement 2#87F97A
Triadic 1#F9AC7A
Triadic 2#7AF9AC
Tetradic#F97A87

RGB percentages

Red67.5%
Green47.8%
Blue97.6%

CMYK percentages

Cyan30.9%
Magenta51.0%
Yellow0.0%
Key (black)2.4%

Color previews

#ac7af9 text on a black background

contrast 6.91:1

Card sample

#ac7af9 text on a white background

contrast 3.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac7af9

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.

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

#ac7af9, answered

What color is #ac7af9?

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

What is the RGB value of #ac7af9?

rgb(172, 122, 249) — 172 red, 122 green and 249 blue out of 255, or 67.5% / 47.8% / 97.6% by channel.

Is #ac7af9 a light or a dark color?

It is a mid-tone. Relative luminance is 0.2953 and perceived brightness is 62%, so black text on it reaches 6.91:1.

Should I use black or white text on #ac7af9?

Black. It scores 6.91:1 against #ac7af9, versus 3.04:1 for white — AA at any size.

What is the complementary color of #ac7af9?

#C7F97A sits directly opposite on the wheel. Softer options are the split-complements #F9EB7A and #87F97A, which give the same contrast with far less vibration.

What colors go well with #ac7af9?

For interface work: #F7F4FA as the surface, #D1C0ED for borders, #6A4B9B for secondary text, #ACC804 as an accent and #33057A for hover and pressed states. For a palette, the analogous pair #7A87F9 and #EB7AF9 stays calm, while #C7F97A is the loudest partner.

What is #ac7af9 in CMYK for printing?

cmyk(31%, 51%, 0%, 2%). 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 #ac7af9 warm or cool?

Cool — it scores 70 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DA7AF9; nudged cooler, #7C78FA.

Work with #ac7af9 in the Color Lab