Skip to content

#ac02d2

a dark, electric violet · neutral · closest name: Dark Orchid

RGB
172, 2, 210
HSL
289°, 98%, 42%
CMYK
18, 99, 0, 18
Luminance
0.1347

At a glance

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

Hex
#ac02d2
Hue
289°
violet
Saturation
98%
electric
Lightness
42%
dark
Brightness
82%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1347
WCAG relative
Temperature
Neutral
56/100 cool
Color family
Violet
Tone
Electric
Best ink
White
5.69:1
Closest name
Dark Orchid
ΔE2000 3.6
Where it sits
Hue289° of 360°
Saturation98%
Lightness42%
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#ac02d2
RGBrgb(172, 2, 210)
HSLhsl(289, 98%, 42%)
CMYKcmyk(18%, 99%, 0%, 18%)
LABlab(43.5 79.0 -63.3)
LCHlch(43.5 101.2 321.3)
OKLCHoklch(0.549 0.266 317.7)
Decimal11272914
Display P3color(display-p3 0.675 0.008 0.824)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ac02d2 on white: 5.69:1
AA ✓ pass · AA-large · AAA
Aa
#ac02d2 on black: 3.69:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #005ED7
deuteranopia · #106BCE
tritanopia · #AA477B

Color scale — 50 to 950

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

#FBF1FD
#F7E3FC
#F0C1FB
#EA90FE
#DF58FD
#D521FD
#C602F2
#ac02d2
#8402A2
#600674
#3C0449
Base = 700Lightest = 50 · #FBF1FDDarkest = 950 · #3C0449
:root {
  --brand-50: #FBF1FD;
  --brand-100: #F7E3FC;
  --brand-200: #F0C1FB;
  --brand-300: #EA90FE;
  --brand-400: #DF58FD;
  --brand-500: #D521FD;
  --brand-600: #C602F2;
  --brand-700: #ac02d2;
  --brand-800: #8402A2;
  --brand-900: #600674;
  --brand-950: #3C0449;
  --brand: #ac02d2;
  --brand-ink: #ffffff;
}

Colors that work with #ac02d2

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#E4C0ED
Hairlines and dividers
Muted text#8C4B9B
Captions on the surface
Accent#58CC00
Second voice, not a rival
Dark variant#67017E
Hover, pressed, headers
Light variant#FAE6FF
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 #ac02d2

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#28D202
Analogous left#4402D2
Analogous right#D20290
Split-complement 1#90D202
Split-complement 2#02D244
Triadic 1#D2AC02
Triadic 2#02D2AC
Tetradic#D24402

RGB percentages

Red67.5%
Green0.8%
Blue82.4%

CMYK percentages

Cyan18.1%
Magenta99.0%
Yellow0.0%
Key (black)17.6%

Color previews

#ac02d2 text on a black background

contrast 3.69:1

Card sample

#ac02d2 text on a white background

contrast 5.69:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ac02d2

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.

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

#ac02d2, answered

What color is #ac02d2?

#ac02d2 is a dark electric violet, closest to Dark Orchid (ΔE2000 3.6). It sits at 289° on the hue wheel with 98% saturation and 42% lightness, which reads as neutral.

What is the RGB value of #ac02d2?

rgb(172, 2, 210) — 172 red, 2 green and 210 blue out of 255, or 67.5% / 0.8% / 82.4% by channel.

Is #ac02d2 a light or a dark color?

It is a dark color. Relative luminance is 0.1347 and perceived brightness is 46%, so white text on it reaches 5.69:1.

Should I use black or white text on #ac02d2?

White. It scores 5.69:1 against #ac02d2, versus 3.69:1 for black — AA at any size.

What is the complementary color of #ac02d2?

#28D202 sits directly opposite on the wheel. Softer options are the split-complements #90D202 and #02D244, which give the same contrast with far less vibration.

What colors go well with #ac02d2?

For interface work: #F9F4FA as the surface, #E4C0ED for borders, #8C4B9B for secondary text, #58CC00 as an accent and #67017E for hover and pressed states. For a palette, the analogous pair #4402D2 and #D20290 stays calm, while #28D202 is the loudest partner.

What is #ac02d2 in CMYK for printing?

cmyk(18%, 99%, 0%, 18%). 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 #ac02d2 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 #D202AC; nudged cooler, #5F00D4.

Work with #ac02d2 in the Color Lab