#8A4E8D

A color in the Purple, Crimson, Magenta family

#8a4e8d is a color in the Purple, Crimson, Magenta family: RGB(138, 78, 141), HSL(297°, 29%, 43%), CMYK(2%, 45%, 0%, 45%). Closest named color: darkmagenta. Contrast is 5.91:1 on white and 3.56:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#8a4e8d
RGBrgb(138 78 141)
RGB (legacy)rgb(138, 78, 141)
RGB %rgb(54% 31% 55%)
HSLhsl(297 29% 43%)
HSV / HSBhsv(297, 45%, 55%)
HWBhwb(297 31% 45%)
CMYKcmyk(2%, 45%, 0%, 45%)
CIELAB (D50)lab(42.36 33.31 -24.33)
LCHlch(42.36 41.25 323.86)
OKLaboklab(0.5181 0.0971 -0.067)
OKLCHoklch(0.5181 0.118 325.38)
Decimal9064077

Properties

Color TonePurple, Crimson, Magenta
Closest named colordarkmagenta ΔE 11.3
Closest web-safe color#996699
Hue297°
Saturation (HSL / HSV)29% / 45%
Lightness (HSL)43%
Brightness or Value (HSV)55%
Luminance (Rec.601 / Rec.709)40% / 37%
Relative luminance (WCAG)0.1278
Red / Green / Blue138 / 78 / 141

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.91:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.56: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.3 / -22.5 · As background with white / black text: Lc -84.5 / 24.8

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