#8E42C8#8E42C8

#8E42C8 is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.1% C 0.202 H 306.9°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#8E42C8
RGBrgb(142, 66, 200)
HSLhsl(274, 55%, 52%)
HSVhsv(274, 67%, 78%)
CMYKcmyk(29%, 67%, 0%, 21.6%)
CIE-LABlab(43.97, 55.45, -56.90)
CIE-LCHlch(43.97, 79.45, 314.26°)
OKLaboklab(54.13% 0.121 -0.1612)
OKLCHoklch(54.13% 0.202 306.9)
XYZxyz(23.5267, 13.8176, 56.0600)
Luminance0.1382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E42C8 #7CC842
analogous
#4B42C8 #8E42C8 #C842BF
triadic
#8E42C8 #C88E42 #42C88E
tetradic
#8E42C8 #C84B42 #7CC842 #42BFC8
square
#8E42C8 #C84B42 #7CC842 #42BFC8
split-complementary
#8E42C8 #BFC842 #42C84B
monochromatic
#4D206F #6E2E9F #8E42C8 #AA71D6 #C7A1E4

Accessibility & contrast

On white

5.58
#8E42C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#8E42C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E42C8
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E42C8#FFFFFF#000000##FFFFFF
##8E42C81.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CC
Deuteranopia (green-blind)
#2068C5
Tritanopia (blue-blind)
#845F80
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8e42c8;
/* rgb */ color: rgb(142, 66, 200);
/* oklch */ color: oklch(54.1% 0.202 306.9);
Tailwind
colors: {
  custom: {
    50: '#b37cd9',
    500: '#8e42c8',
    950: '#000000',
  },
}
SCSS
$custom: #8e42c8;
$custom-light: #b37cd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8e42c8",
  "rgb": {
    "r": 142,
    "g": 66,
    "b": 200
  },
  "hsl": {
    "h": 274.03,
    "s": 54.918,
    "l": 52.157
  },
  "oklch": {
    "l": 0.54129,
    "c": 0.20157,
    "h": 306.9
  },
  "luminance": 0.13817
}

Semantic roles & 50–950 ramp

primary
#8E42C8
secondary
#AFD096
accent
#DE4A8A
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8E42C8

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

Preview Lab → · Contrast checker → · Palette generator →

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