#8E34CA#8E34CA

#8E34CA is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.7% C 0.220 H 307.7°. Best body text is #FFFFFF at 6.01:1 contrast (WCAG AA passes).

Color values

HEX#8E34CA
RGBrgb(142, 52, 202)
HSLhsl(276, 59%, 50%)
HSVhsv(276, 74%, 79%)
CMYKcmyk(29.7%, 74.3%, 0%, 20.8%)
CIE-LABlab(41.96, 61.96, -61.32)
CIE-LCHlch(41.96, 87.17, 315.30°)
OKLaboklab(52.74% 0.1348 -0.1741)
OKLCHoklch(52.74% 0.22 307.7)
XYZxyz(23.0417, 12.4714, 57.0590)
Luminance0.1247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E34CA #70CA34
analogous
#4334CA #8E34CA #CA34BB
triadic
#8E34CA #CA8E34 #34CA8E
tetradic
#8E34CA #CA4334 #70CA34 #34BBCA
square
#8E34CA #CA4334 #70CA34 #34BBCA
split-complementary
#8E34CA #BBCA34 #34CA43
monochromatic
#4A1B69 #6C2799 #8E34CA #A964D7 #C495E4

Accessibility & contrast

On white

6.01
#8E34CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#8E34CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E34CA
6.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E34CA#FFFFFF#000000##FFFFFF
##8E34CA1.006.013.496.01
#FFFFFF6.011.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CE
Deuteranopia (green-blind)
#0064C7
Tritanopia (blue-blind)
#84587D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8e34ca;
/* rgb */ color: rgb(142, 52, 202);
/* oklch */ color: oklch(52.7% 0.220 307.7);
Tailwind
colors: {
  custom: {
    50: '#b474db',
    500: '#8e34ca',
    950: '#000000',
  },
}
SCSS
$custom: #8e34ca;
$custom-light: #b474db;
$custom-dark: #000000;
JSON
{
  "hex": "#8e34ca",
  "rgb": {
    "r": 142,
    "g": 52,
    "b": 202
  },
  "hsl": {
    "h": 276,
    "s": 59.055,
    "l": 49.804
  },
  "oklch": {
    "l": 0.5274,
    "c": 0.22019,
    "h": 307.7
  },
  "luminance": 0.12471
}

Semantic roles & 50–950 ramp

primary
#8E34CA
secondary
#A6CF8B
accent
#E24684
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8E34CA

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

Preview Lab → · Contrast checker → · Palette generator →

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