#8E36CA#8E36CA

#8E36CA is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.9% C 0.218 H 307.6°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#8E36CA
RGBrgb(142, 54, 202)
HSLhsl(276, 58%, 50%)
HSVhsv(276, 73%, 79%)
CMYKcmyk(29.7%, 73.3%, 0%, 20.8%)
CIE-LABlab(42.24, 61.16, -60.86)
CIE-LCHlch(42.24, 86.28, 315.14°)
OKLaboklab(52.94% 0.1329 -0.1728)
OKLCHoklch(52.94% 0.218 307.6)
XYZxyz(23.1329, 12.6537, 57.0894)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E36CA #72CA36
analogous
#4436CA #8E36CA #CA36BC
triadic
#8E36CA #CA8E36 #36CA8E
tetradic
#8E36CA #CA4436 #72CA36 #36BCCA
square
#8E36CA #CA4436 #72CA36 #36BCCA
split-complementary
#8E36CA #BCCA36 #36CA44
monochromatic
#4A1C6A #6C299A #8E36CA #A966D7 #C497E4

Accessibility & contrast

On white

5.95
#8E36CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8E36CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E36CA
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E36CA#FFFFFF#000000##FFFFFF
##8E36CA1.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CE
Deuteranopia (green-blind)
#0064C7
Tritanopia (blue-blind)
#84597D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8e36ca;
/* rgb */ color: rgb(142, 54, 202);
/* oklch */ color: oklch(52.9% 0.218 307.6);
Tailwind
colors: {
  custom: {
    50: '#b475db',
    500: '#8e36ca',
    950: '#000000',
  },
}
SCSS
$custom: #8e36ca;
$custom-light: #b475db;
$custom-dark: #000000;
JSON
{
  "hex": "#8e36ca",
  "rgb": {
    "r": 142,
    "g": 54,
    "b": 202
  },
  "hsl": {
    "h": 275.676,
    "s": 58.268,
    "l": 50.196
  },
  "oklch": {
    "l": 0.52939,
    "c": 0.21801,
    "h": 307.6
  },
  "luminance": 0.12653
}

Semantic roles & 50–950 ramp

primary
#8E36CA
secondary
#A8CF8D
accent
#E14685
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8E36CA

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

Preview Lab → · Contrast checker → · Palette generator →

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