#8A0C8A

A color in the Purple, Crimson, Magenta family

#8a0c8a is a color in the Purple, Crimson, Magenta family: RGB(138, 12, 138), HSL(300°, 84%, 29%), CMYK(0%, 91%, 0%, 46%). Closest named color: darkmagenta. Contrast is 8.4:1 on white and 2.5:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#8a0c8a
RGBrgb(138 12 138)
RGB (legacy)rgb(138, 12, 138)
RGB %rgb(54% 5% 54%)
HSLhsl(300 84% 29%)
HSV / HSBhsv(300, 91%, 54%)
HWBhwb(300 5% 46%)
CMYKcmyk(0%, 91%, 0%, 46%)
CIELAB (D50)lab(32.83 57.6 -37.4)
LCHlch(32.83 68.67 327)
OKLaboklab(0.4485 0.1691 -0.1045)
OKLCHoklch(0.4485 0.1988 328.28)
Decimal9047178

Properties

Color TonePurple, Crimson, Magenta
Closest named colordarkmagenta ΔE 0.7
Closest web-safe color#990099
Hue300°
Saturation (HSL / HSV)84% / 91%
Lightness (HSL)29%
Brightness or Value (HSV)54%
Luminance (Rec.601 / Rec.709)25% / 19%
Relative luminance (WCAG)0.075
Red / Green / Blue138 / 12 / 138

WCAG 2.2 Contrast Ratio

On White (#ffffff)
8.40:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.50:1
AA Normal (4.5:1) · FailAA Large (3:1) · FailAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 87.1 / -15 · As background with white / black text: Lc -91.9 / 16.9

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: #8a0c8a;
  --color-brand-oklch: oklch(44.85% 0.1988 328.28);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(138 12 138 / 50%); }
/* Tailwind CSS */
<div class="bg-[#8a0c8a] text-[#8a0c8a] border-[#8a0c8a]">