#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 |
|---|---|
| RGB | rgb(138 103 162) |
| RGB (legacy) | rgb(138, 103, 162) |
| RGB % | rgb(54% 40% 64%) |
| HSL | hsl(276 24% 52%) |
| HSV / HSB | hsv(276, 36%, 64%) |
| HWB | hwb(276 40% 36%) |
| CMYK | cmyk(15%, 36%, 0%, 36%) |
| CIELAB (D50) | lab(48.97 23.04 -26.6) |
| LCH | lch(48.97 35.19 310.89) |
| OKLab | oklab(0.5718 0.0631 -0.0731) |
| OKLCH | oklch(0.5718 0.0966 310.76) |
| Decimal | 9070498 |
Properties
| Color Tone | Purple, Crimson, Magenta |
|---|---|
| Closest named color | mediumpurple ΔE 8.8 |
| Closest web-safe color | #996699 |
| Hue | 276° |
| 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 / Blue | 138 / 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
Complementary
Split Complementary
Analogous
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]">