#8E31BD#8E31BD

#8E31BD is a mid, highly saturated violet. Relative luminance 0.116; OKLCH L 51.5% C 0.211 H 311.5°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#8E31BD
RGBrgb(142, 49, 189)
HSLhsl(280, 59%, 47%)
HSVhsv(280, 74%, 74%)
CMYKcmyk(24.9%, 74.1%, 0%, 25.9%)
CIE-LABlab(40.61, 60.35, -55.92)
CIE-LCHlch(40.61, 82.28, 317.18°)
OKLaboklab(51.49% 0.1398 -0.1583)
OKLCHoklch(51.49% 0.211 311.5)
XYZxyz(21.4372, 11.6221, 49.2483)
Luminance0.1162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E31BD #60BD31
analogous
#4831BD #8E31BD #BD31A6
triadic
#8E31BD #BD8E31 #31BD8E
tetradic
#8E31BD #BD4831 #60BD31 #31A6BD
square
#8E31BD #BD4831 #60BD31 #31A6BD
split-complementary
#8E31BD #A6BD31 #31BD48
monochromatic
#45185C #69248C #8E31BD #AA58D4 #C388E0

Accessibility & contrast

On white

6.32
#8E31BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8E31BD
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E31BD#FFFFFF#000000##FFFFFF
##8E31BD1.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC1
Deuteranopia (green-blind)
#1961BA
Tritanopia (blue-blind)
#885175
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8e31bd;
/* rgb */ color: rgb(142, 49, 189);
/* oklch */ color: oklch(51.5% 0.211 311.5);
Tailwind
colors: {
  custom: {
    50: '#b472d2',
    500: '#8e31bd',
    950: '#000000',
  },
}
SCSS
$custom: #8e31bd;
$custom-light: #b472d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8e31bd",
  "rgb": {
    "r": 142,
    "g": 49,
    "b": 189
  },
  "hsl": {
    "h": 279.857,
    "s": 58.824,
    "l": 46.667
  },
  "oklch": {
    "l": 0.51494,
    "c": 0.21116,
    "h": 311.5
  },
  "luminance": 0.11622
}

Semantic roles & 50–950 ramp

primary
#8E31BD
secondary
#99CA80
accent
#E2467A
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120914
muted
#817B83

Preview Lab

Preview with #8E31BD

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

Preview Lab → · Contrast checker → · Palette generator →

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