#8E42D5#8E42D5

#8E42D5 is a mid, highly saturated violet. Relative luminance 0.145; OKLCH L 55.1% C 0.215 H 303.7°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#8E42D5
RGBrgb(142, 66, 213)
HSLhsl(271, 64%, 55%)
HSVhsv(271, 69%, 84%)
CMYKcmyk(33.3%, 69%, 0%, 16.5%)
CIE-LABlab(44.87, 58.45, -62.93)
CIE-LCHlch(44.87, 85.89, 312.88°)
OKLaboklab(55.06% 0.1194 -0.179)
OKLCHoklch(55.06% 0.215 303.7)
XYZxyz(25.1110, 14.4514, 64.4044)
Luminance0.1445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E42D5 #89D542
analogous
#4442D5 #8E42D5 #D542D3
triadic
#8E42D5 #D58E42 #42D58E
tetradic
#8E42D5 #D54442 #89D542 #42D3D5
square
#8E42D5 #D54442 #89D542 #42D3D5
split-complementary
#8E42D5 #D3D542 #42D544
monochromatic
#501C80 #6F28B2 #8E42D5 #AC74E0 #CAA6EB

Accessibility & contrast

On white

5.40
#8E42D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#8E42D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E42D5
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E42D5#FFFFFF#000000##FFFFFF
##8E42D51.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D9
Deuteranopia (green-blind)
#006AD2
Tritanopia (blue-blind)
#806487
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8e42d5;
/* rgb */ color: rgb(142, 66, 213);
/* oklch */ color: oklch(55.1% 0.215 303.7);
Tailwind
colors: {
  custom: {
    50: '#b47ce3',
    500: '#8e42d5',
    950: '#000000',
  },
}
SCSS
$custom: #8e42d5;
$custom-light: #b47ce3;
$custom-dark: #000000;
JSON
{
  "hex": "#8e42d5",
  "rgb": {
    "r": 142,
    "g": 66,
    "b": 213
  },
  "hsl": {
    "h": 271.02,
    "s": 63.636,
    "l": 54.706
  },
  "oklch": {
    "l": 0.55061,
    "c": 0.21511,
    "h": 303.7
  },
  "luminance": 0.14451
}

Semantic roles & 50–950 ramp

primary
#8E42D5
secondary
#B8D89A
accent
#E74191
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8E42D5

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

Preview Lab → · Contrast checker → · Palette generator →

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