#8E42D2#8E42D2

#8E42D2 is a mid, highly saturated violet. Relative luminance 0.143; OKLCH L 54.8% C 0.212 H 304.4°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#8E42D2
RGBrgb(142, 66, 210)
HSLhsl(272, 62%, 54%)
HSVhsv(272, 69%, 82%)
CMYKcmyk(32.4%, 68.6%, 0%, 17.6%)
CIE-LABlab(44.66, 57.75, -61.55)
CIE-LCHlch(44.66, 84.40, 313.17°)
OKLaboklab(54.84% 0.1198 -0.1749)
OKLCHoklch(54.84% 0.212 304.4)
XYZxyz(24.7338, 14.3005, 62.4175)
Luminance0.1430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E42D2 #86D242
analogous
#4642D2 #8E42D2 #D242CE
triadic
#8E42D2 #D28E42 #42D28E
tetradic
#8E42D2 #D24642 #86D242 #42CED2
square
#8E42D2 #D24642 #86D242 #42CED2
split-complementary
#8E42D2 #CED242 #42D246
monochromatic
#4F1E7C #6F29AD #8E42D2 #AC73DE #C9A5EA

Accessibility & contrast

On white

5.44
#8E42D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#8E42D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E42D2
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E42D2#FFFFFF#000000##FFFFFF
##8E42D21.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D6
Deuteranopia (green-blind)
#006ACF
Tritanopia (blue-blind)
#816385
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8e42d2;
/* rgb */ color: rgb(142, 66, 210);
/* oklch */ color: oklch(54.8% 0.212 304.4);
Tailwind
colors: {
  custom: {
    50: '#b47ce1',
    500: '#8e42d2',
    950: '#000000',
  },
}
SCSS
$custom: #8e42d2;
$custom-light: #b47ce1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e42d2",
  "rgb": {
    "r": 142,
    "g": 66,
    "b": 210
  },
  "hsl": {
    "h": 271.667,
    "s": 61.538,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54842,
    "c": 0.21199,
    "h": 304.4
  },
  "luminance": 0.143
}

Semantic roles & 50–950 ramp

primary
#8E42D2
secondary
#B6D799
accent
#E5438F
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8E42D2

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

Preview Lab → · Contrast checker → · Palette generator →

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