#8E34D1#8E34D1

#8E34D1 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 53.3% C 0.227 H 306.0°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#8E34D1
RGBrgb(142, 52, 209)
HSLhsl(274, 63%, 51%)
HSVhsv(274, 75%, 82%)
CMYKcmyk(32.1%, 75.1%, 0%, 18%)
CIE-LABlab(42.48, 63.49, -64.52)
CIE-LCHlch(42.48, 90.52, 314.54°)
OKLaboklab(53.27% 0.1334 -0.1836)
OKLCHoklch(53.27% 0.227 306)
XYZxyz(23.8894, 12.8104, 61.5234)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E34D1 #77D134
analogous
#3F34D1 #8E34D1 #D134C5
triadic
#8E34D1 #D18E34 #34D18E
tetradic
#8E34D1 #D13F34 #77D134 #34C5D1
square
#8E34D1 #D13F34 #77D134 #34C5D1
split-complementary
#8E34D1 #C5D134 #34D13F
monochromatic
#4C1A71 #6D25A3 #8E34D1 #AA66DC #C698E8

Accessibility & contrast

On white

5.90
#8E34D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#8E34D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E34D1
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E34D1#FFFFFF#000000##FFFFFF
##8E34D11.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D5
Deuteranopia (green-blind)
#0065CE
Tritanopia (blue-blind)
#825B81
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8e34d1;
/* rgb */ color: rgb(142, 52, 209);
/* oklch */ color: oklch(53.3% 0.227 306.0);
Tailwind
colors: {
  custom: {
    50: '#b575e0',
    500: '#8e34d1',
    950: '#000000',
  },
}
SCSS
$custom: #8e34d1;
$custom-light: #b575e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e34d1",
  "rgb": {
    "r": 142,
    "g": 52,
    "b": 209
  },
  "hsl": {
    "h": 274.395,
    "s": 63.052,
    "l": 51.176
  },
  "oklch": {
    "l": 0.5327,
    "c": 0.22689,
    "h": 306
  },
  "luminance": 0.1281
}

Semantic roles & 50–950 ramp

primary
#8E34D1
secondary
#ABD38E
accent
#E64288
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8E34D1

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

Preview Lab → · Contrast checker → · Palette generator →

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