#8A66EA

A color in the Violet family

#8a66ea is a color in the Violet family: RGB(138, 102, 234), HSL(256°, 76%, 66%), CMYK(41%, 56%, 0%, 8%). Closest named color: mediumslateblue. Contrast is 4.06:1 on white and 5.17:1 on black. See shades, harmonies and color-blindness simulation.

Color Codes

HEX#8a66ea
RGBrgb(138 102 234)
RGB (legacy)rgb(138, 102, 234)
RGB %rgb(54% 40% 92%)
HSLhsl(256 76% 66%)
HSV / HSBhsv(256, 56%, 92%)
HWBhwb(256 40% 8%)
CMYKcmyk(41%, 56%, 0%, 8%)
CIELAB (D50)lab(52.03 37.77 -62.96)
LCHlch(52.03 73.42 300.96)
OKLaboklab(0.6115 0.0728 -0.1767)
OKLCHoklch(0.6115 0.1911 292.39)
Decimal9070314

Properties

Color ToneViolet
Closest named colormediumslateblue ΔE 2.4
Closest web-safe color#9966ff
Hue256°
Saturation (HSL / HSV)76% / 56%
Lightness (HSL)66%
Brightness or Value (HSV)92%
Luminance (Rec.601 / Rec.709)50% / 47%
Relative luminance (WCAG)0.2085
Red / Green / Blue138 / 102 / 234

WCAG 2.2 Contrast Ratio

On White (#ffffff)
4.06:1
AA Normal (4.5:1) · FailAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
5.17: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.5 / -34.2 · As background with white / black text: Lc -73 / 36.6

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: #8a66ea;
  --color-brand-oklch: oklch(61.15% 0.1911 292.39);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(138 102 234 / 50%); }
/* Tailwind CSS */
<div class="bg-[#8a66ea] text-[#8a66ea] border-[#8a66ea]">