Skip to content

#ac2ce2

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

RGB
172, 44, 226
HSL
282°, 76%, 53%
CMYK
24, 81, 0, 11
Luminance
0.1606

At a glance

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

Hex
#ac2ce2
Hue
282°
violet
Saturation
76%
electric
Lightness
53%
balanced
Brightness
89%
HSV value
Perceived
49%
weighted brightness
Luminance
0.1606
WCAG relative
Temperature
Cool
60/100 cool
Color family
Violet
Tone
Electric
Best ink
White
4.99:1
Closest name
Dark Orchid
ΔE2000 4.2
Where it sits
Hue282° of 360°
Saturation76%
Lightness53%
Temperature
Warm ← → Cool60% 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#ac2ce2
RGBrgb(172, 44, 226)
HSLhsl(282, 76%, 53%)
CMYKcmyk(24%, 81%, 0%, 11%)
LABlab(47.1 74.7 -66.6)
LCHlch(47.1 100.1 318.3)
OKLCHoklch(0.578 0.257 312.8)
Decimal11283682
Display P3color(display-p3 0.675 0.173 0.886)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2ce2 on white: 4.99:1
AA ✓ pass · AA-large · AAA
Aa
#ac2ce2 on black: 4.21:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0069E7
deuteranopia · #0072DE
tritanopia · #A65A89

Color scale — 50 to 950

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

#F9F3FC
#F3E7F9
#E7C8F4
#D89CF1
#C56BEB
#ac2ce2
#A01ED7
#8519B3
#6B148F
#4F1368
#310C41
Base = 500Lightest = 50 · #F9F3FCDarkest = 950 · #310C41
:root {
  --brand-50: #F9F3FC;
  --brand-100: #F3E7F9;
  --brand-200: #E7C8F4;
  --brand-300: #D89CF1;
  --brand-400: #C56BEB;
  --brand-500: #ac2ce2;
  --brand-600: #A01ED7;
  --brand-700: #8519B3;
  --brand-800: #6B148F;
  --brand-900: #4F1368;
  --brand-950: #310C41;
  --brand: #ac2ce2;
  --brand-ink: #ffffff;
}

Colors that work with #ac2ce2

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#DFC0ED
Hairlines and dividers
Muted text#834B9B
Captions on the surface
Accent#6EB814
Second voice, not a rival
Dark variant#530F70
Hover, pressed, headers
Light variant#F6E9FC
Selected rows, tints
Dark surface#1F1424
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 #ac2ce2

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#62E22C
Analogous left#512CE2
Analogous right#E22CBD
Split-complement 1#BDE22C
Split-complement 2#2CE251
Triadic 1#E2AC2C
Triadic 2#2CE2AC
Tetradic#E2512C

RGB percentages

Red67.5%
Green17.3%
Blue88.6%

CMYK percentages

Cyan23.9%
Magenta80.5%
Yellow0.0%
Key (black)11.4%

Color previews

#ac2ce2 text on a black background

contrast 4.21:1

Card sample

#ac2ce2 text on a white background

contrast 4.99:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2ce2

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.

#ac2ce2 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

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

#ac2ce2, answered

What color is #ac2ce2?

#ac2ce2 is a balanced electric violet, closest to Dark Orchid (ΔE2000 4.2). It sits at 282° on the hue wheel with 76% saturation and 53% lightness, which reads as cool.

What is the RGB value of #ac2ce2?

rgb(172, 44, 226) — 172 red, 44 green and 226 blue out of 255, or 67.5% / 17.3% / 88.6% by channel.

Is #ac2ce2 a light or a dark color?

It is a dark color. Relative luminance is 0.1606 and perceived brightness is 49%, so white text on it reaches 4.99:1.

Should I use black or white text on #ac2ce2?

White. It scores 4.99:1 against #ac2ce2, versus 4.21:1 for black — AA at any size.

What is the complementary color of #ac2ce2?

#62E22C sits directly opposite on the wheel. Softer options are the split-complements #BDE22C and #2CE251, which give the same contrast with far less vibration.

What colors go well with #ac2ce2?

For interface work: #F9F4FA as the surface, #DFC0ED for borders, #834B9B for secondary text, #6EB814 as an accent and #530F70 for hover and pressed states. For a palette, the analogous pair #512CE2 and #E22CBD stays calm, while #62E22C is the loudest partner.

What is #ac2ce2 in CMYK for printing?

cmyk(24%, 81%, 0%, 11%). 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 #ac2ce2 warm or cool?

Cool — it scores 60 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #E22CD5; nudged cooler, #6829E4.

Work with #ac2ce2 in the Color Lab