Skip to content

#ac28ac

a dark, vivid magenta / pink · neutral · closest name: Dark Orchid

RGB
172, 40, 172
HSL
300°, 62%, 42%
CMYK
0, 77, 0, 33
Luminance
0.1327

At a glance

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

Hex
#ac28ac
Hue
300°
magenta / pink
Saturation
62%
vivid
Lightness
42%
dark
Brightness
67%
HSV value
Perceived
45%
weighted brightness
Luminance
0.1327
WCAG relative
Temperature
Neutral
50/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.75:1
Closest name
Dark Orchid
ΔE2000 7
Where it sits
Hue300° of 360°
Saturation62%
Lightness42%
Temperature
Warm ← → Cool50% 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#ac28ac
RGBrgb(172, 40, 172)
HSLhsl(300, 62%, 42%)
CMYKcmyk(0%, 77%, 0%, 33%)
LABlab(43.2 66.3 -41.5)
LCHlch(43.2 78.2 327.9)
OKLCHoklch(0.539 0.218 328.1)
Decimal11282604
Display P3color(display-p3 0.675 0.157 0.675)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac28ac on white: 5.75:1
AA ✓ pass · AA-large · AAA
Aa
#ac28ac on black: 3.65:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #025BAF
deuteranopia · #4E6CA9
tritanopia · #B23E69

Color scale — 50 to 950

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

#FBF4FB
#F7E8F7
#F0CCF0
#EAA4EA
#DF76DF
#D549D5
#C72EC7
#ac28ac
#841F84
#601A60
#3C103C
Base = 700Lightest = 50 · #FBF4FBDarkest = 950 · #3C103C
:root {
  --brand-50: #FBF4FB;
  --brand-100: #F7E8F7;
  --brand-200: #F0CCF0;
  --brand-300: #EAA4EA;
  --brand-400: #DF76DF;
  --brand-500: #D549D5;
  --brand-600: #C72EC7;
  --brand-700: #ac28ac;
  --brand-800: #841F84;
  --brand-900: #601A60;
  --brand-950: #3C103C;
  --brand: #ac28ac;
  --brand-ink: #ffffff;
}

Colors that work with #ac28ac

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#FAF4FA
Tinted page background
Border#EDC0ED
Hairlines and dividers
Muted text#9B4B9B
Captions on the surface
Accent#44A923
Second voice, not a rival
Dark variant#671867
Hover, pressed, headers
Light variant#FAEAFA
Selected rows, tints
Dark surface#241424
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 #ac28ac

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
  • Headers, footers and dark-mode surfaces
  • Brand accents, badges and data highlights
Use with care
  • Full-page backgrounds — tiring over long sessions
  • Black 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#28AC28
Analogous left#6A28AC
Analogous right#AC286A
Split-complement 1#6AAC28
Split-complement 2#28AC6A
Triadic 1#ACAC28
Triadic 2#28ACAC
Tetradic#AC6A28

RGB percentages

Red67.5%
Green15.7%
Blue67.5%

CMYK percentages

Cyan0.0%
Magenta76.7%
Yellow0.0%
Key (black)32.5%

Color previews

#ac28ac text on a black background

contrast 3.65:1

Card sample

#ac28ac text on a white background

contrast 5.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac28ac

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.

#ac28ac in the real world

Where a color in this family tends to land, and the interface roles it is usually asked to play.

Industries
BeautyFashionLifestyleYouth brands
Common UI roles
ButtonsLinksFocus statesCharts
Print note

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

#ac28ac, answered

What color is #ac28ac?

#ac28ac is a dark vivid magenta / pink, closest to Dark Orchid (ΔE2000 7). It sits at 300° on the hue wheel with 62% saturation and 42% lightness, which reads as neutral.

What is the RGB value of #ac28ac?

rgb(172, 40, 172) — 172 red, 40 green and 172 blue out of 255, or 67.5% / 15.7% / 67.5% by channel.

Is #ac28ac a light or a dark color?

It is a dark color. Relative luminance is 0.1327 and perceived brightness is 45%, so white text on it reaches 5.75:1.

Should I use black or white text on #ac28ac?

White. It scores 5.75:1 against #ac28ac, versus 3.65:1 for black — AA at any size.

What is the complementary color of #ac28ac?

#28AC28 sits directly opposite on the wheel. Softer options are the split-complements #6AAC28 and #28AC6A, which give the same contrast with far less vibration.

What colors go well with #ac28ac?

For interface work: #FAF4FA as the surface, #EDC0ED for borders, #9B4B9B for secondary text, #44A923 as an accent and #671867 for hover and pressed states. For a palette, the analogous pair #6A28AC and #AC286A stays calm, while #28AC28 is the loudest partner.

What is #ac28ac in CMYK for printing?

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

Is #ac28ac warm or cool?

Neutral — it scores 50 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AC287C; nudged cooler, #7C26AE.

Work with #ac28ac in the Color Lab