#8E34C6#8E34C6

#8E34C6 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.4% C 0.216 H 308.8°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#8E34C6
RGBrgb(142, 52, 198)
HSLhsl(277, 58%, 49%)
HSVhsv(277, 74%, 78%)
CMYKcmyk(28.3%, 73.7%, 0%, 22.4%)
CIE-LABlab(41.66, 61.09, -59.47)
CIE-LCHlch(41.66, 85.26, 315.77°)
OKLaboklab(52.44% 0.1355 -0.1687)
OKLCHoklch(52.44% 0.216 308.8)
XYZxyz(22.5743, 12.2844, 54.5970)
Luminance0.1228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E34C6 #6CC634
analogous
#4534C6 #8E34C6 #C634B5
triadic
#8E34C6 #C68E34 #34C68E
tetradic
#8E34C6 #C64534 #6CC634 #34B5C6
square
#8E34C6 #C64534 #6CC634 #34B5C6
split-complementary
#8E34C6 #B5C634 #34C645
monochromatic
#481B65 #6B2796 #8E34C6 #A962D6 #C492E2

Accessibility & contrast

On white

6.07
#8E34C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#8E34C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E34C6
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E34C6#FFFFFF#000000##FFFFFF
##8E34C61.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCA
Deuteranopia (green-blind)
#0163C3
Tritanopia (blue-blind)
#85567B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8e34c6;
/* rgb */ color: rgb(142, 52, 198);
/* oklch */ color: oklch(52.4% 0.216 308.8);
Tailwind
colors: {
  custom: {
    50: '#b474d8',
    500: '#8e34c6',
    950: '#000000',
  },
}
SCSS
$custom: #8e34c6;
$custom-light: #b474d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8e34c6",
  "rgb": {
    "r": 142,
    "g": 52,
    "b": 198
  },
  "hsl": {
    "h": 276.986,
    "s": 58.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.52443,
    "c": 0.21637,
    "h": 308.8
  },
  "luminance": 0.12284
}

Semantic roles & 50–950 ramp

primary
#8E34C6
secondary
#A3CD89
accent
#E24682
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120915
muted
#817B83

Preview Lab

Preview with #8E34C6

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

Preview Lab → · Contrast checker → · Palette generator →

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