#8A67A2

A color in the Purple, Crimson, Magenta family

#8a67a2 is a color in the Purple, Crimson, Magenta family: RGB(138, 103, 162), HSL(276°, 24%, 52%), CMYK(15%, 36%, 0%, 36%). Closest named color: mediumpurple. Contrast is 4.62:1 on white and 4.54:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#8a67a2
RGBrgb(138 103 162)
RGB (legacy)rgb(138, 103, 162)
RGB %rgb(54% 40% 64%)
HSLhsl(276 24% 52%)
HSV / HSBhsv(276, 36%, 64%)
HWBhwb(276 40% 36%)
CMYKcmyk(15%, 36%, 0%, 36%)
CIELAB (D50)lab(48.97 23.04 -26.6)
LCHlch(48.97 35.19 310.89)
OKLaboklab(0.5718 0.0631 -0.0731)
OKLCHoklch(0.5718 0.0966 310.76)
Decimal9070498

Properties

Color TonePurple, Crimson, Magenta
Closest named colormediumpurple ΔE 8.8
Closest web-safe color#996699
Hue276°
Saturation (HSL / HSV)24% / 36%
Lightness (HSL)52%
Brightness or Value (HSV)64%
Luminance (Rec.601 / Rec.709)47% / 45%
Relative luminance (WCAG)0.1771
Red / Green / Blue138 / 103 / 162

WCAG 2.2 Contrast Ratio

On White (#ffffff)
4.62:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.54:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
Aa Bb 123

APCA Contrast Lc (reference) — As text on white / black: Lc 72 / -29.7 · As background with white / black text: Lc -77.5 / 32.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: #8a67a2;
  --color-brand-oklch: oklch(57.18% 0.0966 310.76);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(138 103 162 / 50%); }
/* Tailwind CSS */
<div class="bg-[#8a67a2] text-[#8a67a2] border-[#8a67a2]">