#8E42CD#8E42CD

#8E42CD is a mid, highly saturated violet. Relative luminance 0.141; OKLCH L 54.5% C 0.207 H 305.6°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#8E42CD
RGBrgb(142, 66, 205)
HSLhsl(273, 58%, 53%)
HSVhsv(273, 68%, 80%)
CMYKcmyk(30.7%, 67.8%, 0%, 19.6%)
CIE-LABlab(44.31, 56.59, -59.24)
CIE-LCHlch(44.31, 81.93, 313.69°)
OKLaboklab(54.48% 0.1204 -0.1681)
OKLCHoklch(54.48% 0.207 305.6)
XYZxyz(24.1206, 14.0552, 59.1880)
Luminance0.1406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E42CD #81CD42
analogous
#4842CD #8E42CD #CD42C6
triadic
#8E42CD #CD8E42 #42CD8E
tetradic
#8E42CD #CD4842 #81CD42 #42C6CD
square
#8E42CD #CD4842 #81CD42 #42C6CD
split-complementary
#8E42CD #C6CD42 #42CD48
monochromatic
#4E1F76 #6F2CA6 #8E42CD #AB72DA #C8A3E7

Accessibility & contrast

On white

5.51
#8E42CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#8E42CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E42CD
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E42CD#FFFFFF#000000##FFFFFF
##8E42CD1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D1
Deuteranopia (green-blind)
#1469CA
Tritanopia (blue-blind)
#836182
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8e42cd;
/* rgb */ color: rgb(142, 66, 205);
/* oklch */ color: oklch(54.5% 0.207 305.6);
Tailwind
colors: {
  custom: {
    50: '#b47cdd',
    500: '#8e42cd',
    950: '#000000',
  },
}
SCSS
$custom: #8e42cd;
$custom-light: #b47cdd;
$custom-dark: #000000;
JSON
{
  "hex": "#8e42cd",
  "rgb": {
    "r": 142,
    "g": 66,
    "b": 205
  },
  "hsl": {
    "h": 272.806,
    "s": 58.159,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54483,
    "c": 0.20678,
    "h": 305.6
  },
  "luminance": 0.14055
}

Semantic roles & 50–950 ramp

primary
#8E42CD
secondary
#B3D397
accent
#E1468D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120A15
muted
#817C83

Preview Lab

Preview with #8E42CD

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

Preview Lab → · Contrast checker → · Palette generator →

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