#8E42D8#8E42D8

#8E42D8 is a mid, highly saturated violet. Relative luminance 0.146; OKLCH L 55.3% C 0.218 H 303.0°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#8E42D8
RGBrgb(142, 66, 216)
HSLhsl(270, 66%, 55%)
HSVhsv(270, 69%, 85%)
CMYKcmyk(34.3%, 69.4%, 0%, 15.3%)
CIE-LABlab(45.09, 59.15, -64.30)
CIE-LCHlch(45.09, 87.37, 312.61°)
OKLaboklab(55.28% 0.1189 -0.183)
OKLCHoklch(55.28% 0.218 303)
XYZxyz(25.4953, 14.6051, 66.4283)
Luminance0.1461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E42D8 #8CD842
analogous
#4342D8 #8E42D8 #D842D7
triadic
#8E42D8 #D88E42 #42D88E
tetradic
#8E42D8 #D84342 #8CD842 #42D7D8
square
#8E42D8 #D84342 #8CD842 #42D7D8
split-complementary
#8E42D8 #D7D842 #42D843
monochromatic
#501B84 #6F26B7 #8E42D8 #AC75E2 #CBA7ED

Accessibility & contrast

On white

5.36
#8E42D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#8E42D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E42D8
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E42D8#FFFFFF#000000##FFFFFF
##8E42D81.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DC
Deuteranopia (green-blind)
#006AD5
Tritanopia (blue-blind)
#7F6588
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8e42d8;
/* rgb */ color: rgb(142, 66, 216);
/* oklch */ color: oklch(55.3% 0.218 303.0);
Tailwind
colors: {
  custom: {
    50: '#b57ce5',
    500: '#8e42d8',
    950: '#000000',
  },
}
SCSS
$custom: #8e42d8;
$custom-light: #b57ce5;
$custom-dark: #000000;
JSON
{
  "hex": "#8e42d8",
  "rgb": {
    "r": 142,
    "g": 66,
    "b": 216
  },
  "hsl": {
    "h": 270.4,
    "s": 65.789,
    "l": 55.294
  },
  "oklch": {
    "l": 0.55282,
    "c": 0.21824,
    "h": 303
  },
  "luminance": 0.14605
}

Semantic roles & 50–950 ramp

primary
#8E42D8
secondary
#BADA9C
accent
#E93F93
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8E42D8

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

Preview Lab → · Contrast checker → · Palette generator →

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