#8A4E97

A color in the Purple, Crimson, Magenta family

#8a4e97 is a color in the Purple, Crimson, Magenta family: RGB(138, 78, 151), HSL(289°, 32%, 45%), CMYK(9%, 48%, 0%, 41%). Closest named color: slateblue. Contrast is 5.81:1 on white and 3.62:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#8a4e97
RGBrgb(138 78 151)
RGB (legacy)rgb(138, 78, 151)
RGB %rgb(54% 31% 59%)
HSLhsl(289 32% 45%)
HSV / HSBhsv(289, 48%, 59%)
HWBhwb(289 31% 41%)
CMYKcmyk(9%, 48%, 0%, 41%)
CIELAB (D50)lab(42.75 34.85 -29.72)
LCHlch(42.75 45.8 319.54)
OKLaboklab(0.5231 0.099 -0.0822)
OKLCHoklch(0.5231 0.1287 320.28)
Decimal9064087

Properties

Color TonePurple, Crimson, Magenta
Closest named colorslateblue ΔE 10
Closest web-safe color#996699
Hue289°
Saturation (HSL / HSV)32% / 48%
Lightness (HSL)45%
Brightness or Value (HSV)59%
Luminance (Rec.601 / Rec.709)41% / 38%
Relative luminance (WCAG)0.1309
Red / Green / Blue138 / 78 / 151

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.81:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.62: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 78.8 / -23 · As background with white / black text: Lc -84 / 25.3

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: #8a4e97;
  --color-brand-oklch: oklch(52.31% 0.1287 320.28);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(138 78 151 / 50%); }
/* Tailwind CSS */
<div class="bg-[#8a4e97] text-[#8a4e97] border-[#8a4e97]">