#8E42BB#8E42BB

#8E42BB is a mid, vivid violet. Relative luminance 0.132; OKLCH L 53.2% C 0.188 H 310.5°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#8E42BB
RGBrgb(142, 66, 187)
HSLhsl(278, 48%, 50%)
HSVhsv(278, 65%, 73%)
CMYKcmyk(24.1%, 64.7%, 0%, 26.7%)
CIE-LABlab(43.12, 52.52, -50.71)
CIE-LCHlch(43.12, 73.00, 316.00°)
OKLaboklab(53.24% 0.122 -0.143)
OKLCHoklch(53.24% 0.188 310.5)
XYZxyz(22.0715, 13.2355, 48.3961)
Luminance0.1323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E42BB #6FBB42
analogous
#5242BB #8E42BB #BB42AC
triadic
#8E42BB #BB8E42 #42BB8E
tetradic
#8E42BB #BB5242 #6FBB42 #42ACBB
square
#8E42BB #BB5242 #6FBB42 #42ACBB
split-complementary
#8E42BB #ACBB42 #42BB52
monochromatic
#492261 #6C328E #8E42BB #A96ECC #C49CDC

Accessibility & contrast

On white

5.76
#8E42BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#8E42BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E42BB
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E42BB#FFFFFF#000000##FFFFFF
##8E42BB1.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#3367B8
Tritanopia (blue-blind)
#885A79
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8e42bb;
/* rgb */ color: rgb(142, 66, 187);
/* oklch */ color: oklch(53.2% 0.188 310.5);
Tailwind
colors: {
  custom: {
    50: '#b37bd0',
    500: '#8e42bb',
    950: '#000000',
  },
}
SCSS
$custom: #8e42bb;
$custom-light: #b37bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e42bb",
  "rgb": {
    "r": 142,
    "g": 66,
    "b": 187
  },
  "hsl": {
    "h": 277.686,
    "s": 47.826,
    "l": 49.608
  },
  "oklch": {
    "l": 0.53243,
    "c": 0.188,
    "h": 310.5
  },
  "luminance": 0.13235
}

Semantic roles & 50–950 ramp

primary
#8E42BB
secondary
#A5C891
accent
#D75083
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A14
muted
#807C82

Preview Lab

Preview with #8E42BB

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

Preview Lab → · Contrast checker → · Palette generator →

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