#8E41BA#8E41BA

#8E41BA is a mid, vivid violet. Relative luminance 0.131; OKLCH L 53.1% C 0.188 H 310.9°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#8E41BA
RGBrgb(142, 65, 186)
HSLhsl(278, 48%, 49%)
HSVhsv(278, 65%, 73%)
CMYKcmyk(23.7%, 65.1%, 0%, 27.1%)
CIE-LABlab(42.88, 52.77, -50.50)
CIE-LCHlch(42.88, 73.04, 316.26°)
OKLaboklab(53.05% 0.1232 -0.1424)
OKLCHoklch(53.05% 0.188 310.9)
XYZxyz(21.9069, 13.0770, 47.8149)
Luminance0.1308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E41BA #6DBA41
analogous
#5241BA #8E41BA #BA41AA
triadic
#8E41BA #BA8E41 #41BA8E
tetradic
#8E41BA #BA5241 #6DBA41 #41AABA
square
#8E41BA #BA5241 #6DBA41 #41AABA
split-complementary
#8E41BA #AABA41 #41BA52
monochromatic
#49215F #6B318D #8E41BA #A96CCC #C49ADC

Accessibility & contrast

On white

5.81
#8E41BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#8E41BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E41BA
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E41BA#FFFFFF#000000##FFFFFF
##8E41BA1.005.813.625.81
#FFFFFF5.811.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BE
Deuteranopia (green-blind)
#3367B7
Tritanopia (blue-blind)
#885978
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8e41ba;
/* rgb */ color: rgb(142, 65, 186);
/* oklch */ color: oklch(53.1% 0.188 310.9);
Tailwind
colors: {
  custom: {
    50: '#b37bcf',
    500: '#8e41ba',
    950: '#000000',
  },
}
SCSS
$custom: #8e41ba;
$custom-light: #b37bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#8e41ba",
  "rgb": {
    "r": 142,
    "g": 65,
    "b": 186
  },
  "hsl": {
    "h": 278.182,
    "s": 48.207,
    "l": 49.216
  },
  "oklch": {
    "l": 0.53052,
    "c": 0.18834,
    "h": 310.9
  },
  "luminance": 0.13077
}

Semantic roles & 50–950 ramp

primary
#8E41BA
secondary
#A4C88F
accent
#D85081
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8E41BA

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

Preview Lab → · Contrast checker → · Palette generator →

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