#AB00A6

A color in the Purple, Crimson, Magenta family

#ab00a6 is a color in the Purple, Crimson, Magenta family: RGB(171, 0, 166), HSL(302°, 100%, 34%), CMYK(0%, 100%, 3%, 33%). Closest named color: darkmagenta. Contrast is 6.4:1 on white and 3.28:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#ab00a6
RGBrgb(171 0 166)
RGB (legacy)rgb(171, 0, 166)
RGB %rgb(67% 0% 65%)
HSLhsl(302 100% 34%)
HSV / HSBhsv(302, 100%, 67%)
HWBhwb(302 0% 33%)
CMYKcmyk(0%, 100%, 3%, 33%)
CIELAB (D50)lab(40.2 68.8 -42.27)
LCHlch(40.2 80.74 328.43)
OKLaboklab(0.517 0.204 -0.1181)
OKLCHoklch(0.517 0.2357 329.94)
Decimal11206822

Properties

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

WCAG 2.2 Contrast Ratio

On White (#ffffff)
6.40:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.28: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.4 / -22.4 · As background with white / black text: Lc -84.6 / 24.7

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: #ab00a6;
  --color-brand-oklch: oklch(51.7% 0.2357 329.94);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(171 0 166 / 50%); }
/* Tailwind CSS */
<div class="bg-[#ab00a6] text-[#ab00a6] border-[#ab00a6]">