#8E31B5#8E31B5

#8E31B5 is a mid, highly saturated purple. Relative luminance 0.113; OKLCH L 50.9% C 0.204 H 313.8°. Best body text is #FFFFFF at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#8E31B5
RGBrgb(142, 49, 181)
HSLhsl(282, 57%, 45%)
HSVhsv(282, 73%, 71%)
CMYKcmyk(21.5%, 72.9%, 0%, 29%)
CIE-LABlab(40.06, 58.69, -52.11)
CIE-LCHlch(40.06, 78.48, 318.40°)
OKLaboklab(50.93% 0.1409 -0.1471)
OKLCHoklch(50.93% 0.204 313.8)
XYZxyz(20.5927, 11.2843, 44.8004)
Luminance0.1128 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E31B5 #58B531
analogous
#4C31B5 #8E31B5 #B5319A
triadic
#8E31B5 #B58E31 #31B58E
tetradic
#8E31B5 #B54C31 #58B531 #319AB5
square
#8E31B5 #B54C31 #58B531 #319AB5
split-complementary
#8E31B5 #9AB531 #31B54C
monochromatic
#421755 #682485 #8E31B5 #AB53D0 #C383DD

Accessibility & contrast

On white

6.45
#8E31B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#8E31B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E31B5
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E31B5#FFFFFF#000000##FFFFFF
##8E31B51.006.453.266.45
#FFFFFF6.451.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B9
Deuteranopia (green-blind)
#2761B2
Tritanopia (blue-blind)
#8A4E70
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8e31b5;
/* rgb */ color: rgb(142, 49, 181);
/* oklch */ color: oklch(50.9% 0.204 313.8);
Tailwind
colors: {
  custom: {
    50: '#b372cc',
    500: '#8e31b5',
    950: '#000000',
  },
}
SCSS
$custom: #8e31b5;
$custom-light: #b372cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8e31b5",
  "rgb": {
    "r": 142,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 282.273,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50926,
    "c": 0.20369,
    "h": 313.8
  },
  "luminance": 0.11284
}

Semantic roles & 50–950 ramp

primary
#8E31B5
secondary
#91C77B
accent
#E14775
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8E31B5

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

Preview Lab → · Contrast checker → · Palette generator →

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