#AB4792

A color in the Purple, Crimson, Magenta family

#ab4792 is a color in the Purple, Crimson, Magenta family: RGB(171, 71, 146), HSL(315°, 41%, 47%), CMYK(0%, 58%, 15%, 33%). Closest named color: mediumvioletred. Contrast is 5.19:1 on white and 4.05:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#ab4792
RGBrgb(171 71 146)
RGB (legacy)rgb(171, 71, 146)
RGB %rgb(67% 28% 57%)
HSLhsl(315 41% 47%)
HSV / HSBhsv(315, 58%, 67%)
HWBhwb(315 28% 33%)
CMYKcmyk(0%, 58%, 15%, 33%)
CIELAB (D50)lab(46.07 48.26 -21.13)
LCHlch(46.07 52.69 336.36)
OKLaboklab(0.5547 0.147 -0.0583)
OKLCHoklch(0.5547 0.1582 338.36)
Decimal11224978

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumvioletred ΔE 7.3
Closest web-safe color#993399
Hue315°
Saturation (HSL / HSV)41% / 58%
Lightness (HSL)47%
Brightness or Value (HSV)67%
Luminance (Rec.601 / Rec.709)43% / 38%
Relative luminance (WCAG)0.1524
Red / Green / Blue171 / 71 / 146

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.19:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.05: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 75.1 / -26.6 · As background with white / black text: Lc -80.5 / 29

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: #ab4792;
  --color-brand-oklch: oklch(55.47% 0.1582 338.36);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(171 71 146 / 50%); }
/* Tailwind CSS */
<div class="bg-[#ab4792] text-[#ab4792] border-[#ab4792]">