#8E34C2#8E34C2

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

Color values

HEX#8E34C2
RGBrgb(142, 52, 194)
HSLhsl(278, 58%, 48%)
HSVhsv(278, 73%, 76%)
CMYKcmyk(26.8%, 73.2%, 0%, 23.9%)
CIE-LABlab(41.38, 60.23, -57.60)
CIE-LCHlch(41.38, 83.34, 316.28°)
OKLaboklab(52.15% 0.1362 -0.1632)
OKLCHoklch(52.15% 0.213 309.8)
XYZxyz(22.1190, 12.1023, 52.1992)
Luminance0.1210 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E34C2 #68C234
analogous
#4734C2 #8E34C2 #C234AF
triadic
#8E34C2 #C28E34 #34C28E
tetradic
#8E34C2 #C24734 #68C234 #34AFC2
square
#8E34C2 #C24734 #68C234 #34AFC2
split-complementary
#8E34C2 #AFC234 #34C247
monochromatic
#471A61 #6B2792 #8E34C2 #A95FD4 #C38FE1

Accessibility & contrast

On white

6.14
#8E34C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#8E34C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E34C2
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E34C2#FFFFFF#000000##FFFFFF
##8E34C21.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC6
Deuteranopia (green-blind)
#1263BF
Tritanopia (blue-blind)
#875578
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8e34c2;
/* rgb */ color: rgb(142, 52, 194);
/* oklch */ color: oklch(52.1% 0.213 309.8);
Tailwind
colors: {
  custom: {
    50: '#b474d5',
    500: '#8e34c2',
    950: '#000000',
  },
}
SCSS
$custom: #8e34c2;
$custom-light: #b474d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8e34c2",
  "rgb": {
    "r": 142,
    "g": 52,
    "b": 194
  },
  "hsl": {
    "h": 278.028,
    "s": 57.724,
    "l": 48.235
  },
  "oklch": {
    "l": 0.5215,
    "c": 0.21255,
    "h": 309.8
  },
  "luminance": 0.12102
}

Semantic roles & 50–950 ramp

primary
#8E34C2
secondary
#A0CC86
accent
#E1477F
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #8E34C2

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

Preview Lab → · Contrast checker → · Palette generator →

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