#A31991

A color in the Purple, Crimson, Magenta family

#a31991 is a color in the Purple, Crimson, Magenta family: RGB(163, 25, 145), HSL(308°, 73%, 37%), CMYK(0%, 85%, 11%, 36%). Closest named color: darkmagenta. Contrast is 6.76:1 on white and 3.11:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#a31991
RGBrgb(163 25 145)
RGB (legacy)rgb(163, 25, 145)
RGB %rgb(64% 10% 57%)
HSLhsl(308 73% 37%)
HSV / HSBhsv(308, 85%, 64%)
HWBhwb(308 10% 36%)
CMYKcmyk(0%, 85%, 11%, 36%)
CIELAB (D50)lab(38.83 61.56 -31.85)
LCHlch(38.83 69.31 332.64)
OKLaboklab(0.4998 0.1869 -0.0887)
OKLCHoklch(0.4998 0.2069 334.62)
Decimal10688913

Properties

Color TonePurple, Crimson, Magenta
Closest named colordarkmagenta ΔE 5.8
Closest web-safe color#990099
Hue308°
Saturation (HSL / HSV)73% / 85%
Lightness (HSL)37%
Brightness or Value (HSV)64%
Luminance (Rec.601 / Rec.709)31% / 25%
Relative luminance (WCAG)0.1053
Red / Green / Blue163 / 25 / 145

WCAG 2.2 Contrast Ratio

On White (#ffffff)
6.76:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.11: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 81.7 / -20.2 · As background with white / black text: Lc -86.8 / 22.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: #a31991;
  --color-brand-oklch: oklch(49.98% 0.2069 334.62);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(163 25 145 / 50%); }
/* Tailwind CSS */
<div class="bg-[#a31991] text-[#a31991] border-[#a31991]">