#8E42BC#8E42BC

#8E42BC is a mid, vivid violet. Relative luminance 0.133; OKLCH L 53.3% C 0.189 H 310.2°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#8E42BC
RGBrgb(142, 66, 188)
HSLhsl(277, 48%, 50%)
HSVhsv(277, 65%, 74%)
CMYKcmyk(24.5%, 64.9%, 0%, 26.3%)
CIE-LABlab(43.18, 52.74, -51.19)
CIE-LCHlch(43.18, 73.50, 315.85°)
OKLaboklab(53.31% 0.1219 -0.1445)
OKLCHoklch(53.31% 0.189 310.2)
XYZxyz(22.1789, 13.2785, 48.9618)
Luminance0.1328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E42BC #70BC42
analogous
#5142BC #8E42BC #BC42AD
triadic
#8E42BC #BC8E42 #42BC8E
tetradic
#8E42BC #BC5142 #70BC42 #42ADBC
square
#8E42BC #BC5142 #70BC42 #42ADBC
split-complementary
#8E42BC #ADBC42 #42BC51
monochromatic
#4A2261 #6C328F #8E42BC #A96FCC #C49CDC

Accessibility & contrast

On white

5.74
#8E42BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#8E42BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E42BC
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E42BC#FFFFFF#000000##FFFFFF
##8E42BC1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C0
Deuteranopia (green-blind)
#3267B9
Tritanopia (blue-blind)
#885B79
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8e42bc;
/* rgb */ color: rgb(142, 66, 188);
/* oklch */ color: oklch(53.3% 0.189 310.2);
Tailwind
colors: {
  custom: {
    50: '#b37bd1',
    500: '#8e42bc',
    950: '#000000',
  },
}
SCSS
$custom: #8e42bc;
$custom-light: #b37bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e42bc",
  "rgb": {
    "r": 142,
    "g": 66,
    "b": 188
  },
  "hsl": {
    "h": 277.377,
    "s": 48.031,
    "l": 49.804
  },
  "oklch": {
    "l": 0.53309,
    "c": 0.18905,
    "h": 310.2
  },
  "luminance": 0.13278
}

Semantic roles & 50–950 ramp

primary
#8E42BC
secondary
#A6C991
accent
#D85083
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8E42BC

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

Preview Lab → · Contrast checker → · Palette generator →

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