#8A4E7E

A color in the Purple, Crimson, Magenta family

#8a4e7e is a color in the Purple, Crimson, Magenta family: RGB(138, 78, 126), HSL(312°, 28%, 42%), CMYK(0%, 43%, 9%, 46%). Closest named color: dimgray. Contrast is 6.05:1 on white and 3.47:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#8a4e7e
RGBrgb(138 78 126)
RGB (legacy)rgb(138, 78, 126)
RGB %rgb(54% 31% 49%)
HSLhsl(312 28% 42%)
HSV / HSBhsv(312, 43%, 54%)
HWBhwb(312 31% 46%)
CMYKcmyk(0%, 43%, 9%, 46%)
CIELAB (D50)lab(41.82 31.17 -16.06)
LCHlch(41.82 35.06 332.74)
OKLaboklab(0.5112 0.0935 -0.044)
OKLCHoklch(0.5112 0.1034 334.77)
Decimal9064062

Properties

Color TonePurple, Crimson, Magenta
Closest named colordimgray ΔE 10.4
Closest web-safe color#996666
Hue312°
Saturation (HSL / HSV)28% / 43%
Lightness (HSL)42%
Brightness or Value (HSV)54%
Luminance (Rec.601 / Rec.709)40% / 37%
Relative luminance (WCAG)0.1236
Red / Green / Blue138 / 78 / 126

WCAG 2.2 Contrast Ratio

On White (#ffffff)
6.05:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.47: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 80 / -21.9 · As background with white / black text: Lc -85.2 / 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: #8a4e7e;
  --color-brand-oklch: oklch(51.12% 0.1034 334.77);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(138 78 126 / 50%); }
/* Tailwind CSS */
<div class="bg-[#8a4e7e] text-[#8a4e7e] border-[#8a4e7e]">