#8E31BB#8E31BB

#8E31BB is a mid, highly saturated purple. Relative luminance 0.115; OKLCH L 51.3% C 0.209 H 312.0°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#8E31BB
RGBrgb(142, 49, 187)
HSLhsl(280, 58%, 46%)
HSVhsv(280, 74%, 73%)
CMYKcmyk(24.1%, 73.8%, 0%, 26.7%)
CIE-LABlab(40.47, 59.93, -54.97)
CIE-LCHlch(40.47, 81.33, 317.47°)
OKLaboklab(51.35% 0.1401 -0.1555)
OKLCHoklch(51.35% 0.209 312)
XYZxyz(21.2216, 11.5358, 48.1128)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E31BB #5EBB31
analogous
#4931BB #8E31BB #BB31A3
triadic
#8E31BB #BB8E31 #31BB8E
tetradic
#8E31BB #BB4931 #5EBB31 #31A3BB
square
#8E31BB #BB4931 #5EBB31 #31A3BB
split-complementary
#8E31BB #A3BB31 #31BB49
monochromatic
#44185A #69248B #8E31BB #AA56D3 #C387E0

Accessibility & contrast

On white

6.35
#8E31BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#8E31BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E31BB
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E31BB#FFFFFF#000000##FFFFFF
##8E31BB1.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBF
Deuteranopia (green-blind)
#1D61B8
Tritanopia (blue-blind)
#895074
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8e31bb;
/* rgb */ color: rgb(142, 49, 187);
/* oklch */ color: oklch(51.3% 0.209 312.0);
Tailwind
colors: {
  custom: {
    50: '#b472d0',
    500: '#8e31bb',
    950: '#000000',
  },
}
SCSS
$custom: #8e31bb;
$custom-light: #b472d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8e31bb",
  "rgb": {
    "r": 142,
    "g": 49,
    "b": 187
  },
  "hsl": {
    "h": 280.435,
    "s": 58.475,
    "l": 46.275
  },
  "oklch": {
    "l": 0.5135,
    "c": 0.20928,
    "h": 312
  },
  "luminance": 0.11535
}

Semantic roles & 50–950 ramp

primary
#8E31BB
secondary
#97C97F
accent
#E24679
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #8E31BB

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

Preview Lab → · Contrast checker → · Palette generator →

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