#8A6796

A color in the Purple, Crimson, Magenta family

#8a6796 is a color in the Purple, Crimson, Magenta family: RGB(138, 103, 150), HSL(285°, 19%, 50%), CMYK(8%, 31%, 0%, 41%). Closest named color: slategray. Contrast is 4.71:1 on white and 4.46:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#8a6796
RGBrgb(138 103 150)
RGB (legacy)rgb(138, 103, 150)
RGB %rgb(54% 40% 59%)
HSLhsl(285 19% 50%)
HSV / HSBhsv(285, 31%, 59%)
HWBhwb(285 40% 41%)
CMYKcmyk(8%, 31%, 0%, 41%)
CIELAB (D50)lab(48.54 21.03 -20.21)
LCHlch(48.54 29.17 316.14)
OKLaboklab(0.5663 0.0599 -0.0552)
OKLCHoklch(0.5663 0.0815 317.3)
Decimal9070486

Properties

Color TonePurple, Crimson, Magenta
Closest named colorslategray ΔE 8
Closest web-safe color#996699
Hue285°
Saturation (HSL / HSV)19% / 31%
Lightness (HSL)50%
Brightness or Value (HSV)59%
Luminance (Rec.601 / Rec.709)47% / 45%
Relative luminance (WCAG)0.1731
Red / Green / Blue138 / 103 / 150

WCAG 2.2 Contrast Ratio

On White (#ffffff)
4.71:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.46: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 72.6 / -29.1 · As background with white / black text: Lc -78.1 / 31.5

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: #8a6796;
  --color-brand-oklch: oklch(56.63% 0.0815 317.3);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(138 103 150 / 50%); }
/* Tailwind CSS */
<div class="bg-[#8a6796] text-[#8a6796] border-[#8a6796]">