#AB00A2

A color in the Purple, Crimson, Magenta family

#ab00a2 is a color in the Purple, Crimson, Magenta family: RGB(171, 0, 162), HSL(303°, 100%, 34%), CMYK(0%, 100%, 5%, 33%). Closest named color: darkmagenta. Contrast is 6.45:1 on white and 3.25:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#ab00a2
RGBrgb(171 0 162)
RGB (legacy)rgb(171, 0, 162)
RGB %rgb(67% 0% 64%)
HSLhsl(303 100% 34%)
HSV / HSBhsv(303, 100%, 67%)
HWBhwb(303 0% 33%)
CMYKcmyk(0%, 100%, 5%, 33%)
CIELAB (D50)lab(40 68.38 -40.18)
LCHlch(40 79.31 329.56)
OKLaboklab(0.5145 0.2043 -0.1122)
OKLCHoklch(0.5145 0.2331 331.23)
Decimal11206818

Properties

Color TonePurple, Crimson, Magenta
Closest named colordarkmagenta ΔE 7.4
Closest web-safe color#990099
Hue303°
Saturation (HSL / HSV)100% / 100%
Lightness (HSL)34%
Brightness or Value (HSV)67%
Luminance (Rec.601 / Rec.709)27% / 19%
Relative luminance (WCAG)0.1127
Red / Green / Blue171 / 0 / 162

WCAG 2.2 Contrast Ratio

On White (#ffffff)
6.45:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.25:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 79.6 / -22.2 · As background with white / black text: Lc -84.8 / 24.4

Lightness Scale (OKLCH 50–950)

Eleven steps that change only perceived lightness while keeping hue and chroma — ready to use as design-system color tokens.

Tints (mixed with white)

Shades (mixed with black)

Color Harmonies

Color Vision Deficiency Simulation

Estimated appearance of this color for people with color vision deficiencies (Machado 2009).

Similar Named Colors

Use in CSS

:root {
  --color-brand: #ab00a2;
  --color-brand-oklch: oklch(51.45% 0.2331 331.23);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(171 0 162 / 50%); }
/* Tailwind CSS */
<div class="bg-[#ab00a2] text-[#ab00a2] border-[#ab00a2]">