#8A287C

A color in the Purple, Crimson, Magenta family

#8a287c is a color in the Purple, Crimson, Magenta family: RGB(138, 40, 124), HSL(309°, 55%, 35%), CMYK(0%, 71%, 10%, 46%). Closest named color: darkmagenta. Contrast is 7.85:1 on white and 2.68:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#8a287c
RGBrgb(138 40 124)
RGB (legacy)rgb(138, 40, 124)
RGB %rgb(54% 16% 49%)
HSLhsl(309 55% 35%)
HSV / HSBhsv(309, 71%, 54%)
HWBhwb(309 16% 46%)
CMYKcmyk(0%, 71%, 10%, 46%)
CIELAB (D50)lab(34.8 48.65 -25.6)
LCHlch(34.8 54.97 332.25)
OKLaboklab(0.459 0.1471 -0.071)
OKLCHoklch(0.459 0.1634 334.22)
Decimal9054332

Properties

Color TonePurple, Crimson, Magenta
Closest named colordarkmagenta ΔE 4.8
Closest web-safe color#993366
Hue309°
Saturation (HSL / HSV)55% / 71%
Lightness (HSL)35%
Brightness or Value (HSV)54%
Luminance (Rec.601 / Rec.709)31% / 26%
Relative luminance (WCAG)0.0838
Red / Green / Blue138 / 40 / 124

WCAG 2.2 Contrast Ratio

On White (#ffffff)
7.85:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Pass
On Black (#000000)
2.68: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 86.3 / -15.8 · As background with white / black text: Lc -91.1 / 17.7

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: #8a287c;
  --color-brand-oklch: oklch(45.9% 0.1634 334.22);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(138 40 124 / 50%); }
/* Tailwind CSS */
<div class="bg-[#8a287c] text-[#8a287c] border-[#8a287c]">