#8E41B7#8E41B7

#8E41B7 is a mid, vivid violet. Relative luminance 0.130; OKLCH L 52.9% C 0.185 H 311.8°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#8E41B7
RGBrgb(142, 65, 183)
HSLhsl(279, 48%, 49%)
HSVhsv(279, 64%, 72%)
CMYKcmyk(22.4%, 64.5%, 0%, 28.2%)
CIE-LABlab(42.69, 52.11, -49.05)
CIE-LCHlch(42.69, 71.56, 316.73°)
OKLaboklab(52.85% 0.1234 -0.1382)
OKLCHoklch(52.85% 0.185 311.8)
XYZxyz(21.5913, 12.9508, 46.1529)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E41B7 #6AB741
analogous
#5341B7 #8E41B7 #B741A5
triadic
#8E41B7 #B78E41 #41B78E
tetradic
#8E41B7 #B75341 #6AB741 #41A5B7
square
#8E41B7 #B75341 #6AB741 #41A5B7
split-complementary
#8E41B7 #A5B741 #41B753
monochromatic
#48215D #6B318A #8E41B7 #A96BCA #C398DA

Accessibility & contrast

On white

5.85
#8E41B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#8E41B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E41B7
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E41B7#FFFFFF#000000##FFFFFF
##8E41B71.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BB
Deuteranopia (green-blind)
#3666B4
Tritanopia (blue-blind)
#895876
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8e41b7;
/* rgb */ color: rgb(142, 65, 183);
/* oklch */ color: oklch(52.9% 0.185 311.8);
Tailwind
colors: {
  custom: {
    50: '#b37bcd',
    500: '#8e41b7',
    950: '#000000',
  },
}
SCSS
$custom: #8e41b7;
$custom-light: #b37bcd;
$custom-dark: #000000;
JSON
{
  "hex": "#8e41b7",
  "rgb": {
    "r": 142,
    "g": 65,
    "b": 183
  },
  "hsl": {
    "h": 279.153,
    "s": 47.581,
    "l": 48.627
  },
  "oklch": {
    "l": 0.52854,
    "c": 0.18523,
    "h": 311.8
  },
  "luminance": 0.1295
}

Semantic roles & 50–950 ramp

primary
#8E41B7
secondary
#A1C68E
accent
#D7517F
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A13
muted
#807C82

Preview Lab

Preview with #8E41B7

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

Preview Lab → · Contrast checker → · Palette generator →

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