#8E34CC#8E34CC

#8E34CC is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.9% C 0.222 H 307.2°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#8E34CC
RGBrgb(142, 52, 204)
HSLhsl(276, 60%, 50%)
HSVhsv(276, 75%, 80%)
CMYKcmyk(30.4%, 74.5%, 0%, 20%)
CIE-LABlab(42.10, 62.39, -62.24)
CIE-LCHlch(42.10, 88.13, 315.07°)
OKLaboklab(52.89% 0.1344 -0.1768)
OKLCHoklch(52.89% 0.222 307.2)
XYZxyz(23.2801, 12.5667, 58.3142)
Luminance0.1257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E34CC #72CC34
analogous
#4234CC #8E34CC #CC34BE
triadic
#8E34CC #CC8E34 #34CC8E
tetradic
#8E34CC #CC4234 #72CC34 #34BECC
square
#8E34CC #CC4234 #72CC34 #34BECC
split-complementary
#8E34CC #BECC34 #34CC42
monochromatic
#4A1B6B #6C279C #8E34CC #A965D8 #C496E5

Accessibility & contrast

On white

5.98
#8E34CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#8E34CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E34CC
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E34CC#FFFFFF#000000##FFFFFF
##8E34CC1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D0
Deuteranopia (green-blind)
#0064C9
Tritanopia (blue-blind)
#84597E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8e34cc;
/* rgb */ color: rgb(142, 52, 204);
/* oklch */ color: oklch(52.9% 0.222 307.2);
Tailwind
colors: {
  custom: {
    50: '#b474dc',
    500: '#8e34cc',
    950: '#000000',
  },
}
SCSS
$custom: #8e34cc;
$custom-light: #b474dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8e34cc",
  "rgb": {
    "r": 142,
    "g": 52,
    "b": 204
  },
  "hsl": {
    "h": 275.526,
    "s": 59.843,
    "l": 50.196
  },
  "oklch": {
    "l": 0.52891,
    "c": 0.22211,
    "h": 307.2
  },
  "luminance": 0.12566
}

Semantic roles & 50–950 ramp

primary
#8E34CC
secondary
#A8D08C
accent
#E34585
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8E34CC

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

Preview Lab → · Contrast checker → · Palette generator →

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