Skip to content

#ac22df

a balanced, vivid violet · cool · closest name: Dark Orchid

RGB
172, 34, 223
HSL
284°, 75%, 50%
CMYK
23, 85, 0, 13
Luminance
0.1524

At a glance

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

Hex
#ac22df
Hue
284°
violet
Saturation
75%
vivid
Lightness
50%
balanced
Brightness
87%
HSV value
Perceived
48%
weighted brightness
Luminance
0.1524
WCAG relative
Temperature
Cool
59/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
5.19:1
Closest name
Dark Orchid
ΔE2000 3.6
Where it sits
Hue284° of 360°
Saturation75%
Lightness50%
Temperature
Warm ← → Cool59% 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#ac22df
RGBrgb(172, 34, 223)
HSLhsl(284, 75%, 50%)
CMYKcmyk(23%, 85%, 0%, 13%)
LABlab(46.0 76.7 -66.7)
LCHlch(46.0 101.7 319.0)
OKLCHoklch(0.569 0.262 313.9)
Decimal11281119
Display P3color(display-p3 0.675 0.133 0.875)

Copy-ready code

/* CSS */
color: #ac22df;
background-color: #ac22df;
/* Tailwind (arbitrary) */
class="text-[#ac22df] bg-[#ac22df]"
/* SCSS */
$brand: #ac22df;
/* SwiftUI */
Color(red: 0.675, green: 0.133, blue: 0.875)
/* Android */
Color.parseColor("#ac22df")
/* Flutter */
Color(0xFFAC22DF)
/* Python / OpenCV (BGR) */
(223, 34, 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#ffffff on #ac22df · 5.19:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.19:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 4.05:1
AA fail · AA large pass · AAA fail
Reading the other direction: #ac22df as text scores 5.19:1 on white and 4.05:1 on black.

Accessibility — WCAG contrast

Aa
#ac22df on white: 5.19:1
AA ✓ pass · AA-large · AAA
Aa
#ac22df on black: 4.05:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0066E4
deuteranopia · #0070DB
tritanopia · #A75586

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ac22df is pinned to step 600; the rest hold its hue and let saturation ease off at the extremes so the pale end never turns neon.

#F9F3FC
#F4E7F9
#E8C8F4
#DA9DF1
#C86CEA
#B53BE3
#ac22df
#891AB2
#6E158F
#511367
#320C41
Base = 600Lightest = 50 · #F9F3FCDarkest = 950 · #320C41
:root {
  --brand-50: #F9F3FC;
  --brand-100: #F4E7F9;
  --brand-200: #E8C8F4;
  --brand-300: #DA9DF1;
  --brand-400: #C86CEA;
  --brand-500: #B53BE3;
  --brand-600: #ac22df;
  --brand-700: #891AB2;
  --brand-800: #6E158F;
  --brand-900: #511367;
  --brand-950: #320C41;
  --brand: #ac22df;
  --brand-ink: #ffffff;
}

Colors that work with #ac22df

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

Text on it#ffffff
White wins here
Surface#F9F4FA
Tinted page background
Border#E1C0ED
Hairlines and dividers
Muted text#854B9B
Captions on the surface
Accent#6AB616
Second voice, not a rival
Dark variant#56106F
Hover, pressed, headers
Light variant#F7E9FC
Selected rows, tints
Dark surface#201424
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 #ac22df

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

Works well for
  • Body text and links on white
  • Primary buttons and calls to action
  • Focus rings, active and selected states
  • Brand accents, badges and data highlights
Use with care
  • 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#55DF22
Analogous left#4E22DF
Analogous right#DF22B4
Split-complement 1#B4DF22
Split-complement 2#22DF4E
Triadic 1#DFAC22
Triadic 2#22DFAC
Tetradic#DF4E22

RGB percentages

Red67.5%
Green13.3%
Blue87.5%

CMYK percentages

Cyan22.9%
Magenta84.8%
Yellow0.0%
Key (black)12.5%

Color previews

#ac22df text on a black background

contrast 4.05:1

Card sample

#ac22df text on a white background

contrast 5.19:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac22df

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.

#ac22df 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
ButtonsLinksFocus statesCharts
Print note

Converts to four-color process without much drama. Proof it anyway.

#ac22df, answered

What color is #ac22df?

#ac22df is a balanced vivid violet, closest to Dark Orchid (ΔE2000 3.6). It sits at 284° on the hue wheel with 75% saturation and 50% lightness, which reads as cool.

What is the RGB value of #ac22df?

rgb(172, 34, 223) — 172 red, 34 green and 223 blue out of 255, or 67.5% / 13.3% / 87.5% by channel.

Is #ac22df a light or a dark color?

It is a dark color. Relative luminance is 0.1524 and perceived brightness is 48%, so white text on it reaches 5.19:1.

Should I use black or white text on #ac22df?

White. It scores 5.19:1 against #ac22df, versus 4.05:1 for black — AA at any size.

What is the complementary color of #ac22df?

#55DF22 sits directly opposite on the wheel. Softer options are the split-complements #B4DF22 and #22DF4E, which give the same contrast with far less vibration.

What colors go well with #ac22df?

For interface work: #F9F4FA as the surface, #E1C0ED for borders, #854B9B for secondary text, #6AB616 as an accent and #56106F for hover and pressed states. For a palette, the analogous pair #4E22DF and #DF22B4 stays calm, while #55DF22 is the loudest partner.

What is #ac22df in CMYK for printing?

cmyk(23%, 85%, 0%, 13%). This is a screen-to-ink approximation — ask your printer for a proof before committing to a run.

Is #ac22df warm or cool?

Cool — it scores 59 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #DF22CD; nudged cooler, #6620E2.

Work with #ac22df in the Color Lab