Skip to content

#ab024d

a dark, electric magenta / pink · warm · closest name: Medium Violet Red

RGB
171, 2, 77
HSL
333°, 98%, 34%
CMYK
0, 99, 55, 33
Luminance
0.0924

At a glance

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

Hex
#ab024d
Hue
333°
magenta / pink
Saturation
98%
electric
Lightness
34%
dark
Brightness
67%
HSV value
Perceived
38%
weighted brightness
Luminance
0.0924
WCAG relative
Temperature
Warm
31/100 cool
Color family
Magenta / pink
Tone
Electric
Best ink
White
7.38:1
Closest name
Medium Violet Red
ΔE2000 12.1
Where it sits
Hue333° of 360°
Saturation98%
Lightness34%
Temperature
Warm ← → Cool31% cool

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

Every format

HEX#ab024d
RGBrgb(171, 2, 77)
HSLhsl(333, 98%, 34%)
CMYKcmyk(0%, 99%, 55%, 33%)
LABlab(36.4 61.9 7.2)
LCHlch(36.4 62.3 6.6)
OKLCHoklch(0.477 0.191 5.6)
Decimal11207245
Display P3color(display-p3 0.671 0.008 0.302)

Copy-ready code

/* CSS */
color: #ab024d;
background-color: #ab024d;
/* Tailwind (arbitrary) */
class="text-[#ab024d] bg-[#ab024d]"
/* SCSS */
$brand: #ab024d;
/* SwiftUI */
Color(red: 0.671, green: 0.008, blue: 0.302)
/* Android */
Color.parseColor("#ab024d")
/* Flutter */
Color(0xFFAB024D)
/* Python / OpenCV (BGR) */
(77, 2, 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 #ab024d · 7.38:1
Use #ffffffAAA at every size.
Aa
White text · 7.38:1 · recommended
AA pass · AA large pass · AAA pass
Aa
Black text · 2.85:1
AA fail · AA large fail · AAA fail
Reading the other direction: #ab024d as text scores 7.38:1 on white and 2.85:1 on black.

Accessibility — WCAG contrast

Aa
#ab024d on white: 7.38:1
AA ✓ pass · AA-large · AAA
Aa
#ab024d on black: 2.85:1
AA ✗ fail · AA-large · AAA
true color
protanopia · #3E424E
deuteranopia · #666049
tritanopia · #BB002C

Color scale — 50 to 950

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

#FDF1F7
#FCE4EE
#FBC1DB
#FE90C1
#FD59A2
#FC2182
#F2036D
#CA025B
#ab024d
#740637
#490422
Base = 800Lightest = 50 · #FDF1F7Darkest = 950 · #490422
:root {
  --brand-50: #FDF1F7;
  --brand-100: #FCE4EE;
  --brand-200: #FBC1DB;
  --brand-300: #FE90C1;
  --brand-400: #FD59A2;
  --brand-500: #FC2182;
  --brand-600: #F2036D;
  --brand-700: #CA025B;
  --brand-800: #ab024d;
  --brand-900: #740637;
  --brand-950: #490422;
  --brand: #ab024d;
  --brand-ink: #ffffff;
}

Colors that work with #ab024d

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#FAF4F7
Tinted page background
Border#EDC0D4
Hairlines and dividers
Muted text#9B4B6E
Captions on the surface
Accent#00CC3F
Second voice, not a rival
Dark variant#7E0139
Hover, pressed, headers
Light variant#FFE6F1
Selected rows, tints
Dark surface#24141B
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 #ab024d

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
  • Text on black or near-black surfaces
  • 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#02AB60
Analogous left#AB02A1
Analogous right#AB0C02
Split-complement 1#02AB0C
Split-complement 2#02A1AB
Triadic 1#4DAB02
Triadic 2#024DAB
Tetradic#A1AB02

RGB percentages

Red67.1%
Green0.8%
Blue30.2%

CMYK percentages

Cyan0.0%
Magenta98.8%
Yellow55.0%
Key (black)32.9%

Color previews

#ab024d text on a black background

contrast 2.85:1

Card sample

#ab024d text on a white background

contrast 7.38:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ab024d

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.

#ab024d 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

Sits outside most CMYK gamuts — expect a duller press result, or specify a spot ink.

#ab024d, answered

What color is #ab024d?

#ab024d is a dark electric magenta / pink, closest to Medium Violet Red (ΔE2000 12.1). It sits at 333° on the hue wheel with 98% saturation and 34% lightness, which reads as warm.

What is the RGB value of #ab024d?

rgb(171, 2, 77) — 171 red, 2 green and 77 blue out of 255, or 67.1% / 0.8% / 30.2% by channel.

Is #ab024d a light or a dark color?

It is a dark color. Relative luminance is 0.0924 and perceived brightness is 38%, so white text on it reaches 7.38:1.

Should I use black or white text on #ab024d?

White. It scores 7.38:1 against #ab024d, versus 2.85:1 for black — AAA at any size.

What is the complementary color of #ab024d?

#02AB60 sits directly opposite on the wheel. Softer options are the split-complements #02AB0C and #02A1AB, which give the same contrast with far less vibration.

What colors go well with #ab024d?

For interface work: #FAF4F7 as the surface, #EDC0D4 for borders, #9B4B6E for secondary text, #00CC3F as an accent and #7E0139 for hover and pressed states. For a palette, the analogous pair #AB02A1 and #AB0C02 stays calm, while #02AB60 is the loudest partner.

What is #ab024d in CMYK for printing?

cmyk(0%, 99%, 55%, 33%). 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 #ab024d warm or cool?

Warm — it scores 31 on a scale where 0 is the warmest orange and 100 the coolest azure. Nudged warmer it becomes #AB020F; nudged cooler, #AD008C.

Work with #ab024d in the Color Lab