#8E31B9#8E31B9

#8E31B9 is a mid, highly saturated purple. Relative luminance 0.115; OKLCH L 51.2% C 0.207 H 312.6°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#8E31B9
RGBrgb(142, 49, 185)
HSLhsl(281, 58%, 46%)
HSVhsv(281, 74%, 73%)
CMYKcmyk(23.2%, 73.5%, 0%, 27.5%)
CIE-LABlab(40.33, 59.51, -54.02)
CIE-LCHlch(40.33, 80.38, 317.77°)
OKLaboklab(51.21% 0.1404 -0.1527)
OKLCHoklch(51.21% 0.207 312.6)
XYZxyz(21.0090, 11.4508, 46.9931)
Luminance0.1145 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E31B9 #5CB931
analogous
#4A31B9 #8E31B9 #B931A0
triadic
#8E31B9 #B98E31 #31B98E
tetradic
#8E31B9 #B94A31 #5CB931 #31A0B9
square
#8E31B9 #B94A31 #5CB931 #31A0B9
split-complementary
#8E31B9 #A0B931 #31B94A
monochromatic
#441758 #692489 #8E31B9 #AB55D2 #C386DF

Accessibility & contrast

On white

6.38
#8E31B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#8E31B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E31B9
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E31B9#FFFFFF#000000##FFFFFF
##8E31B91.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABD
Deuteranopia (green-blind)
#2161B6
Tritanopia (blue-blind)
#894F73
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8e31b9;
/* rgb */ color: rgb(142, 49, 185);
/* oklch */ color: oklch(51.2% 0.207 312.6);
Tailwind
colors: {
  custom: {
    50: '#b372cf',
    500: '#8e31b9',
    950: '#000000',
  },
}
SCSS
$custom: #8e31b9;
$custom-light: #b372cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8e31b9",
  "rgb": {
    "r": 142,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 281.029,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.51208,
    "c": 0.20742,
    "h": 312.6
  },
  "luminance": 0.1145
}

Semantic roles & 50–950 ramp

primary
#8E31B9
secondary
#95C87D
accent
#E14677
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#120814
muted
#817B82

Preview Lab

Preview with #8E31B9

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

Preview Lab → · Contrast checker → · Palette generator →

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