#8E31C6#8E31C6

#8E31C6 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 52.2% C 0.220 H 309.0°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#8E31C6
RGBrgb(142, 49, 198)
HSLhsl(277, 60%, 48%)
HSVhsv(277, 75%, 78%)
CMYKcmyk(28.3%, 75.3%, 0%, 22.4%)
CIE-LABlab(41.26, 62.26, -60.13)
CIE-LCHlch(41.26, 86.56, 315.99°)
OKLaboklab(52.15% 0.1382 -0.1706)
OKLCHoklch(52.15% 0.22 309)
XYZxyz(22.4446, 12.0250, 54.5538)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E31C6 #69C631
analogous
#4431C6 #8E31C6 #C631B3
triadic
#8E31C6 #C68E31 #31C68E
tetradic
#8E31C6 #C64431 #69C631 #31B3C6
square
#8E31C6 #C64431 #69C631 #31B3C6
split-complementary
#8E31C6 #B3C631 #31C644
monochromatic
#481964 #6B2595 #8E31C6 #A95DD7 #C38EE3

Accessibility & contrast

On white

6.17
#8E31C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#8E31C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E31C6
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E31C6#FFFFFF#000000##FFFFFF
##8E31C61.006.173.416.17
#FFFFFF6.171.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECA
Deuteranopia (green-blind)
#0062C3
Tritanopia (blue-blind)
#85557A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8e31c6;
/* rgb */ color: rgb(142, 49, 198);
/* oklch */ color: oklch(52.2% 0.220 309.0);
Tailwind
colors: {
  custom: {
    50: '#b473d8',
    500: '#8e31c6',
    950: '#000000',
  },
}
SCSS
$custom: #8e31c6;
$custom-light: #b473d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8e31c6",
  "rgb": {
    "r": 142,
    "g": 49,
    "b": 198
  },
  "hsl": {
    "h": 277.45,
    "s": 60.324,
    "l": 48.431
  },
  "oklch": {
    "l": 0.52155,
    "c": 0.21958,
    "h": 309
  },
  "luminance": 0.12025
}

Semantic roles & 50–950 ramp

primary
#8E31C6
secondary
#A0CE85
accent
#E34480
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#120915
muted
#817B83

Preview Lab

Preview with #8E31C6

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

Preview Lab → · Contrast checker → · Palette generator →

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