#8E34C3#8E34C3

#8E34C3 is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 52.2% C 0.213 H 309.6°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#8E34C3
RGBrgb(142, 52, 195)
HSLhsl(278, 58%, 48%)
HSVhsv(278, 73%, 76%)
CMYKcmyk(27.2%, 73.3%, 0%, 23.5%)
CIE-LABlab(41.45, 60.44, -58.07)
CIE-LCHlch(41.45, 83.82, 316.15°)
OKLaboklab(52.22% 0.136 -0.1646)
OKLCHoklch(52.22% 0.214 309.6)
XYZxyz(22.2317, 12.1473, 52.7927)
Luminance0.1215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E34C3 #69C334
analogous
#4634C3 #8E34C3 #C334B0
triadic
#8E34C3 #C38E34 #34C38E
tetradic
#8E34C3 #C34634 #69C334 #34B0C3
square
#8E34C3 #C34634 #69C334 #34B0C3
split-complementary
#8E34C3 #B0C334 #34C346
monochromatic
#481A62 #6B2793 #8E34C3 #A960D5 #C390E1

Accessibility & contrast

On white

6.12
#8E34C3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#8E34C3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E34C3
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E34C3#FFFFFF#000000##FFFFFF
##8E34C31.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC7
Deuteranopia (green-blind)
#0E63C0
Tritanopia (blue-blind)
#865579
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8e34c3;
/* rgb */ color: rgb(142, 52, 195);
/* oklch */ color: oklch(52.2% 0.213 309.6);
Tailwind
colors: {
  custom: {
    50: '#b474d6',
    500: '#8e34c3',
    950: '#000000',
  },
}
SCSS
$custom: #8e34c3;
$custom-light: #b474d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8e34c3",
  "rgb": {
    "r": 142,
    "g": 52,
    "b": 195
  },
  "hsl": {
    "h": 277.762,
    "s": 57.895,
    "l": 48.431
  },
  "oklch": {
    "l": 0.52223,
    "c": 0.2135,
    "h": 309.6
  },
  "luminance": 0.12147
}

Semantic roles & 50–950 ramp

primary
#8E34C3
secondary
#A0CC87
accent
#E14780
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #8E34C3

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

Preview Lab → · Contrast checker → · Palette generator →

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