#8E34B2#8E34B2

#8E34B2 is a mid, vivid purple. Relative luminance 0.114; OKLCH L 51.0% C 0.197 H 314.5°. Best body text is #FFFFFF at 6.39:1 contrast (WCAG AA passes).

Color values

HEX#8E34B2
RGBrgb(142, 52, 178)
HSLhsl(283, 55%, 45%)
HSVhsv(283, 71%, 70%)
CMYKcmyk(20.2%, 70.8%, 0%, 30.2%)
CIE-LABlab(40.28, 56.86, -49.97)
CIE-LCHlch(40.28, 75.69, 318.69°)
OKLaboklab(51.02% 0.1383 -0.1408)
OKLCHoklch(51.02% 0.197 314.5)
XYZxyz(20.4179, 11.4218, 43.2399)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E34B2 #58B234
analogous
#4F34B2 #8E34B2 #B23497
triadic
#8E34B2 #B28E34 #34B28E
tetradic
#8E34B2 #B24F34 #58B234 #3497B2
square
#8E34B2 #B24F34 #58B234 #3497B2
split-complementary
#8E34B2 #97B234 #34B24F
monochromatic
#421853 #682683 #8E34B2 #AB56CE #C385DB

Accessibility & contrast

On white

6.39
#8E34B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#8E34B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E34B2
6.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E34B2#FFFFFF#000000##FFFFFF
##8E34B21.006.393.286.39
#FFFFFF6.391.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB6
Deuteranopia (green-blind)
#2E61AF
Tritanopia (blue-blind)
#8B4E6F
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8e34b2;
/* rgb */ color: rgb(142, 52, 178);
/* oklch */ color: oklch(51.0% 0.197 314.5);
Tailwind
colors: {
  custom: {
    50: '#b373ca',
    500: '#8e34b2',
    950: '#000000',
  },
}
SCSS
$custom: #8e34b2;
$custom-light: #b373ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8e34b2",
  "rgb": {
    "r": 142,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 282.857,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.51024,
    "c": 0.19733,
    "h": 314.5
  },
  "luminance": 0.11421
}

Semantic roles & 50–950 ramp

primary
#8E34B2
secondary
#91C57D
accent
#DE4A74
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8E34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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