#8A67E3

A color in the Violet family

#8a67e3 is a color in the Violet family: RGB(138, 103, 227), HSL(257°, 69%, 65%), CMYK(39%, 55%, 0%, 11%). Closest named color: mediumslateblue. Contrast is 4.09:1 on white and 5.13:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#8a67e3
RGBrgb(138 103 227)
RGB (legacy)rgb(138, 103, 227)
RGB %rgb(54% 40% 89%)
HSLhsl(257 69% 65%)
HSV / HSBhsv(257, 55%, 89%)
HWBhwb(257 40% 11%)
CMYKcmyk(39%, 55%, 0%, 11%)
CIELAB (D50)lab(51.88 35.73 -59.28)
LCHlch(51.88 69.22 301.08)
OKLaboklab(0.6085 0.0715 -0.1661)
OKLCHoklch(0.6085 0.1809 293.29)
Decimal9070563

Properties

Color ToneViolet
Closest named colormediumslateblue ΔE 2.9
Closest web-safe color#9966cc
Hue257°
Saturation (HSL / HSV)69% / 55%
Lightness (HSL)65%
Brightness or Value (HSV)89%
Luminance (Rec.601 / Rec.709)50% / 47%
Relative luminance (WCAG)0.2065
Red / Green / Blue138 / 103 / 227

WCAG 2.2 Contrast Ratio

On White (#ffffff)
4.09:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
5.13: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 67.8 / -33.9 · As background with white / black text: Lc -73.3 / 36.3

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