#8A42E9

A color in the Violet family

#8a42e9 is a color in the Violet family: RGB(138, 66, 233), HSL(266°, 79%, 59%), CMYK(41%, 72%, 0%, 9%). Closest named color: blueviolet. Contrast is 5.2:1 on white and 4.04:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#8a42e9
RGBrgb(138 66 233)
RGB (legacy)rgb(138, 66, 233)
RGB %rgb(54% 26% 91%)
HSLhsl(266 79% 59%)
HSV / HSBhsv(266, 72%, 91%)
HWBhwb(266 26% 9%)
CMYKcmyk(41%, 72%, 0%, 9%)
CIELAB (D50)lab(44.94 55.46 -73.85)
LCHlch(44.94 92.35 306.91)
OKLaboklab(0.5614 0.1104 -0.2078)
OKLCHoklch(0.5614 0.2353 297.99)
Decimal9061097

Properties

Color ToneViolet
Closest named colorblueviolet ΔE 3.5
Closest web-safe color#9933ff
Hue266°
Saturation (HSL / HSV)79% / 72%
Lightness (HSL)59%
Brightness or Value (HSV)91%
Luminance (Rec.601 / Rec.709)42% / 37%
Relative luminance (WCAG)0.1518
Red / Green / Blue138 / 66 / 233

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.20:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.04: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 74.9 / -26.8 · As background with white / black text: Lc -80.3 / 29.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: #8a42e9;
  --color-brand-oklch: oklch(56.14% 0.2353 297.99);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(138 66 233 / 50%); }
/* Tailwind CSS */
<div class="bg-[#8a42e9] text-[#8a42e9] border-[#8a42e9]">