#8E34C8#8E34C8

#8E34C8 is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.6% C 0.218 H 308.2°. Best body text is #FFFFFF at 6.04:1 contrast (WCAG AA passes).

Color values

HEX#8E34C8
RGBrgb(142, 52, 200)
HSLhsl(276, 59%, 49%)
HSVhsv(276, 74%, 78%)
CMYKcmyk(29%, 74%, 0%, 21.6%)
CIE-LABlab(41.81, 61.52, -60.40)
CIE-LCHlch(41.81, 86.21, 315.53°)
OKLaboklab(52.59% 0.1351 -0.1714)
OKLCHoklch(52.59% 0.218 308.2)
XYZxyz(22.8065, 12.3773, 55.8200)
Luminance0.1238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E34C8 #6EC834
analogous
#4434C8 #8E34C8 #C834B8
triadic
#8E34C8 #C88E34 #34C88E
tetradic
#8E34C8 #C84434 #6EC834 #34B8C8
square
#8E34C8 #C84434 #6EC834 #34B8C8
split-complementary
#8E34C8 #B8C834 #34C844
monochromatic
#491B67 #6C2797 #8E34C8 #A963D6 #C493E3

Accessibility & contrast

On white

6.04
#8E34C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#8E34C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E34C8
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E34C8#FFFFFF#000000##FFFFFF
##8E34C81.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCC
Deuteranopia (green-blind)
#0064C5
Tritanopia (blue-blind)
#85577C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8e34c8;
/* rgb */ color: rgb(142, 52, 200);
/* oklch */ color: oklch(52.6% 0.218 308.2);
Tailwind
colors: {
  custom: {
    50: '#b474da',
    500: '#8e34c8',
    950: '#000000',
  },
}
SCSS
$custom: #8e34c8;
$custom-light: #b474da;
$custom-dark: #000000;
JSON
{
  "hex": "#8e34c8",
  "rgb": {
    "r": 142,
    "g": 52,
    "b": 200
  },
  "hsl": {
    "h": 276.486,
    "s": 58.73,
    "l": 49.412
  },
  "oklch": {
    "l": 0.52591,
    "c": 0.21828,
    "h": 308.2
  },
  "luminance": 0.12377
}

Semantic roles & 50–950 ramp

primary
#8E34C8
secondary
#A5CE8A
accent
#E24683
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8E34C8

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

Preview Lab → · Contrast checker → · Palette generator →

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