#8E34C1#8E34C1

#8E34C1 is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 52.1% C 0.212 H 310.1°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#8E34C1
RGBrgb(142, 52, 193)
HSLhsl(278, 58%, 48%)
HSVhsv(278, 73%, 76%)
CMYKcmyk(26.4%, 73.1%, 0%, 24.3%)
CIE-LABlab(41.31, 60.01, -57.13)
CIE-LCHlch(41.31, 82.86, 316.41°)
OKLaboklab(52.08% 0.1363 -0.1618)
OKLCHoklch(52.08% 0.212 310.1)
XYZxyz(22.0071, 12.0575, 51.6098)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E34C1 #67C134
analogous
#4734C1 #8E34C1 #C134AD
triadic
#8E34C1 #C18E34 #34C18E
tetradic
#8E34C1 #C14734 #67C134 #34ADC1
square
#8E34C1 #C14734 #67C134 #34ADC1
split-complementary
#8E34C1 #ADC134 #34C147
monochromatic
#471A61 #6B2791 #8E34C1 #A95ED4 #C38FE1

Accessibility & contrast

On white

6.16
#8E34C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#8E34C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E34C1
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E34C1#FFFFFF#000000##FFFFFF
##8E34C11.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC5
Deuteranopia (green-blind)
#1563BE
Tritanopia (blue-blind)
#875478
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8e34c1;
/* rgb */ color: rgb(142, 52, 193);
/* oklch */ color: oklch(52.1% 0.212 310.1);
Tailwind
colors: {
  custom: {
    50: '#b474d5',
    500: '#8e34c1',
    950: '#000000',
  },
}
SCSS
$custom: #8e34c1;
$custom-light: #b474d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8e34c1",
  "rgb": {
    "r": 142,
    "g": 52,
    "b": 193
  },
  "hsl": {
    "h": 278.298,
    "s": 57.551,
    "l": 48.039
  },
  "oklch": {
    "l": 0.52078,
    "c": 0.2116,
    "h": 310.1
  },
  "luminance": 0.12057
}

Semantic roles & 50–950 ramp

primary
#8E34C1
secondary
#9FCB86
accent
#E1477F
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #8E34C1

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

Preview Lab → · Contrast checker → · Palette generator →

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