#8E34C4#8E34C4

#8E34C4 is a mid, highly saturated violet. Relative luminance 0.122; OKLCH L 52.3% C 0.214 H 309.3°. Best body text is #FFFFFF at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#8E34C4
RGBrgb(142, 52, 196)
HSLhsl(278, 58%, 49%)
HSVhsv(278, 73%, 77%)
CMYKcmyk(27.6%, 73.5%, 0%, 23.1%)
CIE-LABlab(41.52, 60.66, -58.54)
CIE-LCHlch(41.52, 84.30, 316.02°)
OKLaboklab(52.3% 0.1358 -0.166)
OKLCHoklch(52.3% 0.214 309.3)
XYZxyz(22.3451, 12.1927, 53.3902)
Luminance0.1219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E34C4 #6AC434
analogous
#4634C4 #8E34C4 #C434B2
triadic
#8E34C4 #C48E34 #34C48E
tetradic
#8E34C4 #C44634 #6AC434 #34B2C4
square
#8E34C4 #C44634 #6AC434 #34B2C4
split-complementary
#8E34C4 #B2C434 #34C446
monochromatic
#481A63 #6B2794 #8E34C4 #A960D5 #C391E2

Accessibility & contrast

On white

6.11
#8E34C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#8E34C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E34C4
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E34C4#FFFFFF#000000##FFFFFF
##8E34C41.006.113.446.11
#FFFFFF6.111.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC8
Deuteranopia (green-blind)
#0A63C1
Tritanopia (blue-blind)
#865679
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8e34c4;
/* rgb */ color: rgb(142, 52, 196);
/* oklch */ color: oklch(52.3% 0.214 309.3);
Tailwind
colors: {
  custom: {
    50: '#b474d7',
    500: '#8e34c4',
    950: '#000000',
  },
}
SCSS
$custom: #8e34c4;
$custom-light: #b474d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8e34c4",
  "rgb": {
    "r": 142,
    "g": 52,
    "b": 196
  },
  "hsl": {
    "h": 277.5,
    "s": 58.065,
    "l": 48.627
  },
  "oklch": {
    "l": 0.52296,
    "c": 0.21445,
    "h": 309.3
  },
  "luminance": 0.12192
}

Semantic roles & 50–950 ramp

primary
#8E34C4
secondary
#A1CC87
accent
#E14781
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #8E34C4

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

Preview Lab → · Contrast checker → · Palette generator →

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