#8A42E8

A color in the Violet family

#8a42e8 is a color in the Violet family: RGB(138, 66, 232), HSL(266°, 78%, 58%), CMYK(41%, 72%, 0%, 9%). Closest named color: blueviolet. Contrast is 5.22:1 on white and 4.03:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#8a42e8
RGBrgb(138 66 232)
RGB (legacy)rgb(138, 66, 232)
RGB %rgb(54% 26% 91%)
HSLhsl(266 78% 58%)
HSV / HSBhsv(266, 72%, 91%)
HWBhwb(266 26% 9%)
CMYKcmyk(41%, 72%, 0%, 9%)
CIELAB (D50)lab(44.87 55.27 -73.39)
LCHlch(44.87 91.87 306.98)
OKLaboklab(0.5606 0.1106 -0.2065)
OKLCHoklch(0.5606 0.2343 298.18)
Decimal9061096

Properties

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

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.22:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
4.03: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 75 / -26.7 · As background with white / black text: Lc -80.4 / 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: #8a42e8;
  --color-brand-oklch: oklch(56.06% 0.2343 298.18);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(138 66 232 / 50%); }
/* Tailwind CSS */
<div class="bg-[#8a42e8] text-[#8a42e8] border-[#8a42e8]">