#AC287C

A color in the Purple, Crimson, Magenta family

#ac287c is a color in the Purple, Crimson, Magenta family: RGB(172, 40, 124), HSL(322°, 62%, 42%), CMYK(0%, 77%, 28%, 33%). Closest named color: mediumvioletred. Contrast is 6.27:1 on white and 3.35:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#ac287c
RGBrgb(172 40 124)
RGB (legacy)rgb(172, 40, 124)
RGB %rgb(67% 16% 49%)
HSLhsl(322 62% 42%)
HSV / HSBhsv(322, 77%, 67%)
HWBhwb(322 16% 33%)
CMYKcmyk(0%, 77%, 28%, 33%)
CIELAB (D50)lab(41.09 58 -15.3)
LCHlch(41.09 59.98 345.22)
OKLaboklab(0.5143 0.1806 -0.0427)
OKLCHoklch(0.5143 0.1856 346.71)
Decimal11282556

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumvioletred ΔE 5.4
Closest web-safe color#993366
Hue322°
Saturation (HSL / HSV)62% / 77%
Lightness (HSL)42%
Brightness or Value (HSV)67%
Luminance (Rec.601 / Rec.709)35% / 29%
Relative luminance (WCAG)0.1174
Red / Green / Blue172 / 40 / 124

WCAG 2.2 Contrast Ratio

On White (#ffffff)
6.27:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.35: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 80 / -21.9 · As background with white / black text: Lc -85.1 / 24.1

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: #ac287c;
  --color-brand-oklch: oklch(51.43% 0.1856 346.71);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(172 40 124 / 50%); }
/* Tailwind CSS */
<div class="bg-[#ac287c] text-[#ac287c] border-[#ac287c]">