#8E42D3#8E42D3

#8E42D3 is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.9% C 0.213 H 304.2°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#8E42D3
RGBrgb(142, 66, 211)
HSLhsl(271, 62%, 54%)
HSVhsv(271, 69%, 83%)
CMYKcmyk(32.7%, 68.7%, 0%, 17.3%)
CIE-LABlab(44.73, 57.98, -62.01)
CIE-LCHlch(44.73, 84.90, 313.08°)
OKLaboklab(54.92% 0.1197 -0.1763)
OKLCHoklch(54.92% 0.213 304.2)
XYZxyz(24.8587, 14.3504, 63.0757)
Luminance0.1435 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E42D3 #87D342
analogous
#4642D3 #8E42D3 #D342D0
triadic
#8E42D3 #D38E42 #42D38E
tetradic
#8E42D3 #D34642 #87D342 #42D0D3
square
#8E42D3 #D34642 #87D342 #42D0D3
split-complementary
#8E42D3 #D0D342 #42D346
monochromatic
#501D7D #6F29AF #8E42D3 #AC74DF #C9A5EA

Accessibility & contrast

On white

5.43
#8E42D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#8E42D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E42D3
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E42D3#FFFFFF#000000##FFFFFF
##8E42D31.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D7
Deuteranopia (green-blind)
#006AD0
Tritanopia (blue-blind)
#816386
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8e42d3;
/* rgb */ color: rgb(142, 66, 211);
/* oklch */ color: oklch(54.9% 0.213 304.2);
Tailwind
colors: {
  custom: {
    50: '#b47ce1',
    500: '#8e42d3',
    950: '#000000',
  },
}
SCSS
$custom: #8e42d3;
$custom-light: #b47ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e42d3",
  "rgb": {
    "r": 142,
    "g": 66,
    "b": 211
  },
  "hsl": {
    "h": 271.448,
    "s": 62.232,
    "l": 54.314
  },
  "oklch": {
    "l": 0.54915,
    "c": 0.21303,
    "h": 304.2
  },
  "luminance": 0.1435
}

Semantic roles & 50–950 ramp

primary
#8E42D3
secondary
#B7D79A
accent
#E54290
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8E42D3

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

Preview Lab → · Contrast checker → · Palette generator →

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