#8A42E1

A color in the Violet family

#8a42e1 is a color in the Violet family: RGB(138, 66, 225), HSL(267°, 73%, 57%), CMYK(39%, 71%, 0%, 12%). Closest named color: blueviolet. Contrast is 5.32:1 on white and 3.95:1 on black. See shades, harmonies and color-blindness simulation.

Open in Picker Generate Scheme

Color Codes

HEX#8a42e1
RGBrgb(138 66 225)
RGB (legacy)rgb(138, 66, 225)
RGB %rgb(54% 26% 88%)
HSLhsl(267 73% 57%)
HSV / HSBhsv(267, 71%, 88%)
HWBhwb(267 26% 12%)
CMYKcmyk(39%, 71%, 0%, 12%)
CIELAB (D50)lab(44.41 53.92 -70.18)
LCHlch(44.41 88.5 307.53)
OKLaboklab(0.5551 0.112 -0.1974)
OKLCHoklch(0.5551 0.227 299.56)
Decimal9061089

Properties

Color ToneViolet
Closest named colorblueviolet ΔE 3.3
Closest web-safe color#9933cc
Hue267°
Saturation (HSL / HSV)73% / 71%
Lightness (HSL)57%
Brightness or Value (HSV)88%
Luminance (Rec.601 / Rec.709)41% / 36%
Relative luminance (WCAG)0.1474
Red / Green / Blue138 / 66 / 225

WCAG 2.2 Contrast Ratio

On White (#ffffff)
5.32:1
AA Normal (4.5:1) · PassAA Large (3:1) · PassAAA Normal (7:1) · Fail
On Black (#000000)
3.95: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.7 / -26.1 · As background with white / black text: Lc -81 / 28.4

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: #8a42e1;
  --color-brand-oklch: oklch(55.51% 0.227 299.56);
}
.text { color: var(--color-brand); }
.background { background-color: var(--color-brand); }
.border { border: 1px solid rgb(138 66 225 / 50%); }
/* Tailwind CSS */
<div class="bg-[#8a42e1] text-[#8a42e1] border-[#8a42e1]">