#A8317A

A color in the Purple, Crimson, Magenta family

#a8317a is a color in the Purple, Crimson, Magenta family: RGB(168, 49, 122), HSL(323°, 55%, 43%), CMYK(0%, 71%, 27%, 34%). Closest named color: mediumvioletred. Contrast is 6.2:1 on white and 3.39:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#a8317a
RGBrgb(168 49 122)
RGB (legacy)rgb(168, 49, 122)
RGB %rgb(66% 19% 48%)
HSLhsl(323 55% 43%)
HSV / HSBhsv(323, 71%, 66%)
HWBhwb(323 19% 34%)
CMYKcmyk(0%, 71%, 27%, 34%)
CIELAB (D50)lab(41.36 53.76 -13.74)
LCHlch(41.36 55.49 345.67)
OKLaboklab(0.5149 0.1669 -0.0383)
OKLCHoklch(0.5149 0.1712 347.08)
Decimal11022714

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumvioletred ΔE 6.4
Closest web-safe color#993366
Hue323°
Saturation (HSL / HSV)55% / 71%
Lightness (HSL)43%
Brightness or Value (HSV)66%
Luminance (Rec.601 / Rec.709)36% / 31%
Relative luminance (WCAG)0.1193
Red / Green / Blue168 / 49 / 122

WCAG 2.2 Contrast Ratio

On White (#ffffff)
6.20:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.39: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.9 / -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: #a8317a;
  --color-brand-oklch: oklch(51.49% 0.1712 347.08);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(168 49 122 / 50%); }
/* Tailwind CSS */
<div class="bg-[#a8317a] text-[#a8317a] border-[#a8317a]">