#8E31BC#8E31BC

#8E31BC is a mid, highly saturated purple. Relative luminance 0.116; OKLCH L 51.4% C 0.210 H 311.7°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#8E31BC
RGBrgb(142, 49, 188)
HSLhsl(280, 59%, 46%)
HSVhsv(280, 74%, 74%)
CMYKcmyk(24.5%, 73.9%, 0%, 26.3%)
CIE-LABlab(40.54, 60.14, -55.45)
CIE-LCHlch(40.54, 81.80, 317.32°)
OKLaboklab(51.42% 0.14 -0.1569)
OKLCHoklch(51.42% 0.21 311.7)
XYZxyz(21.3291, 11.5788, 48.6786)
Luminance0.1158 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E31BC #5FBC31
analogous
#4931BC #8E31BC #BC31A5
triadic
#8E31BC #BC8E31 #31BC8E
tetradic
#8E31BC #BC4931 #5FBC31 #31A5BC
square
#8E31BC #BC4931 #5FBC31 #31A5BC
split-complementary
#8E31BC #A5BC31 #31BC49
monochromatic
#45185B #69248B #8E31BC #AA57D3 #C388E0

Accessibility & contrast

On white

6.33
#8E31BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#8E31BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E31BC
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E31BC#FFFFFF#000000##FFFFFF
##8E31BC1.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC0
Deuteranopia (green-blind)
#1B61B9
Tritanopia (blue-blind)
#885174
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8e31bc;
/* rgb */ color: rgb(142, 49, 188);
/* oklch */ color: oklch(51.4% 0.210 311.7);
Tailwind
colors: {
  custom: {
    50: '#b472d1',
    500: '#8e31bc',
    950: '#000000',
  },
}
SCSS
$custom: #8e31bc;
$custom-light: #b472d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8e31bc",
  "rgb": {
    "r": 142,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 280.144,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.51422,
    "c": 0.21022,
    "h": 311.7
  },
  "luminance": 0.11578
}

Semantic roles & 50–950 ramp

primary
#8E31BC
secondary
#98CA7F
accent
#E2467A
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120914
muted
#817B82

Preview Lab

Preview with #8E31BC

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

Preview Lab → · Contrast checker → · Palette generator →

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