Skip to content

#ac2ec7

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

RGB
172, 46, 199
HSL
289°, 62%, 48%
CMYK
14, 77, 0, 22
Luminance
0.1485

At a glance

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

Hex
#ac2ec7
Hue
289°
violet
Saturation
62%
vivid
Lightness
48%
balanced
Brightness
78%
HSV value
Perceived
47%
weighted brightness
Luminance
0.1485
WCAG relative
Temperature
Neutral
56/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
5.29:1
Closest name
Dark Orchid
ΔE2000 3.7
Where it sits
Hue289° of 360°
Saturation62%
Lightness48%
Temperature
Warm ← → Cool56% cool

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

Every format

HEX#ac2ec7
RGBrgb(172, 46, 199)
HSLhsl(289, 62%, 48%)
CMYKcmyk(14%, 77%, 0%, 22%)
LABlab(45.4 69.1 -53.8)
LCHlch(45.4 87.5 322.1)
OKLCHoklch(0.560 0.233 319.7)
Decimal11284167
Display P3color(display-p3 0.675 0.180 0.780)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac2ec7 on white: 5.29:1
AA ✓ pass · AA-large · AAA
Aa
#ac2ec7 on black: 3.97:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0063CB
deuteranopia · #3C70C4
tritanopia · #AC4F7A

Color scale — 50 to 950

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

#FAF4FB
#F5E8F7
#EACCF0
#DEA4EA
#CD76DF
#BC49D5
#ac2ec7
#8F26A6
#731F85
#541A60
#34103C
Base = 600Lightest = 50 · #FAF4FBDarkest = 950 · #34103C
:root {
  --brand-50: #FAF4FB;
  --brand-100: #F5E8F7;
  --brand-200: #EACCF0;
  --brand-300: #DEA4EA;
  --brand-400: #CD76DF;
  --brand-500: #BC49D5;
  --brand-600: #ac2ec7;
  --brand-700: #8F26A6;
  --brand-800: #731F85;
  --brand-900: #541A60;
  --brand-950: #34103C;
  --brand: #ac2ec7;
  --brand-ink: #ffffff;
}

Colors that work with #ac2ec7

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#E5C0ED
Hairlines and dividers
Muted text#8D4B9B
Captions on the surface
Accent#5CAA22
Second voice, not a rival
Dark variant#591868
Hover, pressed, headers
Light variant#F7EAFA
Selected rows, tints
Dark surface#211424
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 #ac2ec7

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#49C72E
Analogous left#5F2EC7
Analogous right#C72E95
Split-complement 1#95C72E
Split-complement 2#2EC75F
Triadic 1#C7AC2E
Triadic 2#2EC7AC
Tetradic#C75F2E

RGB percentages

Red67.5%
Green18.0%
Blue78.0%

CMYK percentages

Cyan13.6%
Magenta76.9%
Yellow0.0%
Key (black)22.0%

Color previews

#ac2ec7 text on a black background

contrast 3.97:1

Card sample

#ac2ec7 text on a white background

contrast 5.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac2ec7

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.

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

#ac2ec7, answered

What color is #ac2ec7?

#ac2ec7 is a balanced vivid violet, closest to Dark Orchid (ΔE2000 3.7). It sits at 289° on the hue wheel with 62% saturation and 48% lightness, which reads as neutral.

What is the RGB value of #ac2ec7?

rgb(172, 46, 199) — 172 red, 46 green and 199 blue out of 255, or 67.5% / 18% / 78% by channel.

Is #ac2ec7 a light or a dark color?

It is a dark color. Relative luminance is 0.1485 and perceived brightness is 47%, so white text on it reaches 5.29:1.

Should I use black or white text on #ac2ec7?

White. It scores 5.29:1 against #ac2ec7, versus 3.97:1 for black — AA at any size.

What is the complementary color of #ac2ec7?

#49C72E sits directly opposite on the wheel. Softer options are the split-complements #95C72E and #2EC75F, which give the same contrast with far less vibration.

What colors go well with #ac2ec7?

For interface work: #F9F4FA as the surface, #E5C0ED for borders, #8D4B9B for secondary text, #5CAA22 as an accent and #591868 for hover and pressed states. For a palette, the analogous pair #5F2EC7 and #C72E95 stays calm, while #49C72E is the loudest partner.

What is #ac2ec7 in CMYK for printing?

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

Is #ac2ec7 warm or cool?

Neutral — it scores 56 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #C72EAA; nudged cooler, #742CC9.

Work with #ac2ec7 in the Color Lab