Skip to content

#ab2abe

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

RGB
171, 42, 190
HSL
292°, 64%, 46%
CMYK
10, 78, 0, 26
Luminance
0.1403

At a glance

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

Hex
#ab2abe
Hue
292°
magenta / pink
Saturation
64%
vivid
Lightness
46%
balanced
Brightness
75%
HSV value
Perceived
46%
weighted brightness
Luminance
0.1403
WCAG relative
Temperature
Neutral
54/100 cool
Color family
Magenta / pink
Tone
Vivid
Best ink
White
5.52:1
Closest name
Dark Orchid
ΔE2000 4.3
Where it sits
Hue292° of 360°
Saturation64%
Lightness46%
Temperature
Warm ← → Cool54% 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#ab2abe
RGBrgb(171, 42, 190)
HSLhsl(292, 64%, 46%)
CMYKcmyk(10%, 78%, 0%, 26%)
LABlab(44.3 68.5 -50.4)
LCHlch(44.3 85.0 323.7)
OKLCHoklch(0.550 0.230 322.1)
Decimal11217598
Display P3color(display-p3 0.671 0.165 0.745)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ab2abe on white: 5.52:1
AA ✓ pass · AA-large · AAA
Aa
#ab2abe on black: 3.81:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #0060C2
deuteranopia · #416DBB
tritanopia · #AD4874

Color scale — 50 to 950

A Tailwind-shaped ramp built around this exact hex. #ab2abe 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
#ECCBF0
#E2A3EB
#D375E1
#C447D6
#ab2abe
#9625A7
#781E86
#581961
#37103D
Base = 600Lightest = 50 · #FAF4FBDarkest = 950 · #37103D
:root {
  --brand-50: #FAF4FB;
  --brand-100: #F5E8F7;
  --brand-200: #ECCBF0;
  --brand-300: #E2A3EB;
  --brand-400: #D375E1;
  --brand-500: #C447D6;
  --brand-600: #ab2abe;
  --brand-700: #9625A7;
  --brand-800: #781E86;
  --brand-900: #581961;
  --brand-950: #37103D;
  --brand: #ab2abe;
  --brand-ink: #ffffff;
}

Colors that work with #ab2abe

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#E7C0ED
Hairlines and dividers
Muted text#914B9B
Captions on the surface
Accent#55AB21
Second voice, not a rival
Dark variant#5E1768
Hover, pressed, headers
Light variant#F8EAFA
Selected rows, tints
Dark surface#221424
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 #ab2abe

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#3DBE2A
Analogous left#612ABE
Analogous right#BE2A87
Split-complement 1#87BE2A
Split-complement 2#2ABE61
Triadic 1#BEAB2A
Triadic 2#2ABEAB
Tetradic#BE612A

RGB percentages

Red67.1%
Green16.5%
Blue74.5%

CMYK percentages

Cyan10.0%
Magenta77.9%
Yellow0.0%
Key (black)25.5%

Color previews

#ab2abe text on a black background

contrast 3.81:1

Card sample

#ab2abe text on a white background

contrast 5.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab2abe

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.

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

#ab2abe, answered

What color is #ab2abe?

#ab2abe is a balanced vivid magenta / pink, closest to Dark Orchid (ΔE2000 4.3). It sits at 292° on the hue wheel with 64% saturation and 46% lightness, which reads as neutral.

What is the RGB value of #ab2abe?

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

Is #ab2abe a light or a dark color?

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

Should I use black or white text on #ab2abe?

White. It scores 5.52:1 against #ab2abe, versus 3.81:1 for black — AA at any size.

What is the complementary color of #ab2abe?

#3DBE2A sits directly opposite on the wheel. Softer options are the split-complements #87BE2A and #2ABE61, which give the same contrast with far less vibration.

What colors go well with #ab2abe?

For interface work: #FAF4FA as the surface, #E7C0ED for borders, #914B9B for secondary text, #55AB21 as an accent and #5E1768 for hover and pressed states. For a palette, the analogous pair #612ABE and #BE2A87 stays calm, while #3DBE2A is the loudest partner.

What is #ab2abe in CMYK for printing?

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

Is #ab2abe warm or cool?

Neutral — it scores 54 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #BE2A9B; nudged cooler, #7528C0.

Work with #ab2abe in the Color Lab