Skip to content

#ab2ac9

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

RGB
171, 42, 201
HSL
289°, 65%, 48%
CMYK
15, 79, 0, 21
Luminance
0.1453

At a glance

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

Hex
#ab2ac9
Hue
289°
violet
Saturation
65%
vivid
Lightness
48%
balanced
Brightness
79%
HSV value
Perceived
47%
weighted brightness
Luminance
0.1453
WCAG relative
Temperature
Neutral
56/100 cool
Color family
Violet
Tone
Vivid
Best ink
White
5.38:1
Closest name
Dark Orchid
ΔE2000 3.3
Where it sits
Hue289° of 360°
Saturation65%
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#ab2ac9
RGBrgb(171, 42, 201)
HSLhsl(289, 65%, 48%)
CMYKcmyk(15%, 79%, 0%, 21%)
LABlab(45.0 70.5 -55.6)
LCHlch(45.0 89.8 321.7)
OKLCHoklch(0.557 0.238 319.0)
Decimal11217609
Display P3color(display-p3 0.671 0.165 0.788)

Copy-ready code

/* CSS */
color: #ab2ac9;
background-color: #ab2ac9;
/* Tailwind (arbitrary) */
class="text-[#ab2ac9] bg-[#ab2ac9]"
/* SCSS */
$brand: #ab2ac9;
/* SwiftUI */
Color(red: 0.671, green: 0.165, blue: 0.788)
/* Android */
Color.parseColor("#ab2ac9")
/* Flutter */
Color(0xFFAB2AC9)
/* Python / OpenCV (BGR) */
(201, 42, 171)

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 #ab2ac9 · 5.38:1
Use #ffffffAA at every size, AAA for large text only.
Aa
White text · 5.38:1 · recommended
AA pass · AA large pass · AAA fail
Aa
Black text · 3.91:1
AA fail · AA large pass · AAA fail
Reading the other direction: #ab2ac9 as text scores 5.38:1 on white and 3.91:1 on black.

Accessibility — WCAG contrast

Aa
#ab2ac9 on white: 5.38:1
AA ✓ pass · AA-large · AAA
Aa
#ab2ac9 on black: 3.91:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0062CD
deuteranopia · #366EC6
tritanopia · #AB4E7A

Color scale — 50 to 950

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

#FAF3FB
#F5E8F8
#EACBF1
#DEA2EC
#CD74E2
#BD45D8
#ab2ac9
#9023A9
#731C87
#541862
#350F3D
Base = 600Lightest = 50 · #FAF3FBDarkest = 950 · #350F3D
:root {
  --brand-50: #FAF3FB;
  --brand-100: #F5E8F8;
  --brand-200: #EACBF1;
  --brand-300: #DEA2EC;
  --brand-400: #CD74E2;
  --brand-500: #BD45D8;
  --brand-600: #ab2ac9;
  --brand-700: #9023A9;
  --brand-800: #731C87;
  --brand-900: #541862;
  --brand-950: #350F3D;
  --brand: #ab2ac9;
  --brand-ink: #ffffff;
}

Colors that work with #ab2ac9

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#5DAD1F
Second voice, not a rival
Dark variant#5A1669
Hover, pressed, headers
Light variant#F7EAFB
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 #ab2ac9

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#48C92A
Analogous left#5B2AC9
Analogous right#C92A97
Split-complement 1#97C92A
Split-complement 2#2AC95B
Triadic 1#C9AB2A
Triadic 2#2AC9AB
Tetradic#C95B2A

RGB percentages

Red67.1%
Green16.5%
Blue78.8%

CMYK percentages

Cyan14.9%
Magenta79.1%
Yellow0.0%
Key (black)21.2%

Color previews

#ab2ac9 text on a black background

contrast 3.91:1

Card sample

#ab2ac9 text on a white background

contrast 5.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(171, 42, 201, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(171, 42, 201, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ab2ac9;
background: linear-gradient(135deg, #ab2ac9, #C92A7D);

Monochromatic scale

Palettes built from #ab2ac9

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.

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

#ab2ac9, answered

What color is #ab2ac9?

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

What is the RGB value of #ab2ac9?

rgb(171, 42, 201) — 171 red, 42 green and 201 blue out of 255, or 67.1% / 16.5% / 78.8% by channel.

Is #ab2ac9 a light or a dark color?

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

Should I use black or white text on #ab2ac9?

White. It scores 5.38:1 against #ab2ac9, versus 3.91:1 for black — AA at any size.

What is the complementary color of #ab2ac9?

#48C92A sits directly opposite on the wheel. Softer options are the split-complements #97C92A and #2AC95B, which give the same contrast with far less vibration.

What colors go well with #ab2ac9?

For interface work: #F9F4FA as the surface, #E4C0ED for borders, #8C4B9B for secondary text, #5DAD1F as an accent and #5A1669 for hover and pressed states. For a palette, the analogous pair #5B2AC9 and #C92A97 stays calm, while #48C92A is the loudest partner.

What is #ab2ac9 in CMYK for printing?

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

Is #ab2ac9 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 #C92AAC; nudged cooler, #7028CB.

Work with #ab2ac9 in the Color Lab