#8E34C7#8E34C7

#8E34C7 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.5% C 0.217 H 308.5°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#8E34C7
RGBrgb(142, 52, 199)
HSLhsl(277, 59%, 49%)
HSVhsv(277, 74%, 78%)
CMYKcmyk(28.6%, 73.9%, 0%, 22%)
CIE-LABlab(41.74, 61.31, -59.93)
CIE-LCHlch(41.74, 85.73, 315.65°)
OKLaboklab(52.52% 0.1353 -0.1701)
OKLCHoklch(52.52% 0.217 308.5)
XYZxyz(22.6900, 12.3307, 55.2065)
Luminance0.1233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E34C7 #6DC734
analogous
#4534C7 #8E34C7 #C734B7
triadic
#8E34C7 #C78E34 #34C78E
tetradic
#8E34C7 #C74534 #6DC734 #34B7C7
square
#8E34C7 #C74534 #6DC734 #34B7C7
split-complementary
#8E34C7 #B7C734 #34C745
monochromatic
#491B66 #6B2796 #8E34C7 #A962D6 #C493E3

Accessibility & contrast

On white

6.06
#8E34C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#8E34C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E34C7
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E34C7#FFFFFF#000000##FFFFFF
##8E34C71.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FCB
Deuteranopia (green-blind)
#0063C4
Tritanopia (blue-blind)
#85577B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8e34c7;
/* rgb */ color: rgb(142, 52, 199);
/* oklch */ color: oklch(52.5% 0.217 308.5);
Tailwind
colors: {
  custom: {
    50: '#b474d9',
    500: '#8e34c7',
    950: '#000000',
  },
}
SCSS
$custom: #8e34c7;
$custom-light: #b474d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8e34c7",
  "rgb": {
    "r": 142,
    "g": 52,
    "b": 199
  },
  "hsl": {
    "h": 276.735,
    "s": 58.566,
    "l": 49.216
  },
  "oklch": {
    "l": 0.52517,
    "c": 0.21732,
    "h": 308.5
  },
  "luminance": 0.1233
}

Semantic roles & 50–950 ramp

primary
#8E34C7
secondary
#A4CE89
accent
#E24682
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8E34C7

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

Preview Lab → · Contrast checker → · Palette generator →

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