#8E41D4#8E41D4

#8E41D4 is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.9% C 0.215 H 304.0°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#8E41D4
RGBrgb(142, 65, 212)
HSLhsl(271, 63%, 54%)
HSVhsv(271, 69%, 83%)
CMYKcmyk(33%, 69.3%, 0%, 16.9%)
CIE-LABlab(44.64, 58.67, -62.74)
CIE-LCHlch(44.64, 85.90, 313.08°)
OKLaboklab(54.87% 0.1205 -0.1784)
OKLCHoklch(54.87% 0.215 304)
XYZxyz(24.9266, 14.2849, 63.7187)
Luminance0.1429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E41D4 #87D441
analogous
#4541D4 #8E41D4 #D441D0
triadic
#8E41D4 #D48E41 #41D48E
tetradic
#8E41D4 #D44541 #87D441 #41D0D4
square
#8E41D4 #D44541 #87D441 #41D0D4
split-complementary
#8E41D4 #D0D441 #41D445
monochromatic
#501D7E #6F28B0 #8E41D4 #AC73DF #C9A5EB

Accessibility & contrast

On white

5.44
#8E41D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#8E41D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E41D4
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E41D4#FFFFFF#000000##FFFFFF
##8E41D41.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D8
Deuteranopia (green-blind)
#0069D1
Tritanopia (blue-blind)
#816386
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8e41d4;
/* rgb */ color: rgb(142, 65, 212);
/* oklch */ color: oklch(54.9% 0.215 304.0);
Tailwind
colors: {
  custom: {
    50: '#b47be2',
    500: '#8e41d4',
    950: '#000000',
  },
}
SCSS
$custom: #8e41d4;
$custom-light: #b47be2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e41d4",
  "rgb": {
    "r": 142,
    "g": 65,
    "b": 212
  },
  "hsl": {
    "h": 271.429,
    "s": 63.09,
    "l": 54.314
  },
  "oklch": {
    "l": 0.54871,
    "c": 0.21529,
    "h": 304
  },
  "luminance": 0.14285
}

Semantic roles & 50–950 ramp

primary
#8E41D4
secondary
#B7D899
accent
#E64290
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A15
muted
#817C84

Preview Lab

Preview with #8E41D4

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#8E41D4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva