#8E31C7#8E31C7

#8E31C7 is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 52.2% C 0.221 H 308.7°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#8E31C7
RGBrgb(142, 49, 199)
HSLhsl(277, 60%, 49%)
HSVhsv(277, 75%, 78%)
CMYKcmyk(28.6%, 75.4%, 0%, 22%)
CIE-LABlab(41.33, 62.47, -60.60)
CIE-LCHlch(41.33, 87.03, 315.87°)
OKLaboklab(52.23% 0.138 -0.172)
OKLCHoklch(52.23% 0.221 308.7)
XYZxyz(22.5603, 12.0713, 55.1633)
Luminance0.1207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E31C7 #6AC731
analogous
#4331C7 #8E31C7 #C731B5
triadic
#8E31C7 #C78E31 #31C78E
tetradic
#8E31C7 #C74331 #6AC731 #31B5C7
square
#8E31C7 #C74331 #6AC731 #31B5C7
split-complementary
#8E31C7 #B5C731 #31C743
monochromatic
#481965 #6B2596 #8E31C7 #A95ED7 #C38FE3

Accessibility & contrast

On white

6.15
#8E31C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8E31C7
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E31C7#FFFFFF#000000##FFFFFF
##8E31C71.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECB
Deuteranopia (green-blind)
#0063C4
Tritanopia (blue-blind)
#85557A
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8e31c7;
/* rgb */ color: rgb(142, 49, 199);
/* oklch */ color: oklch(52.2% 0.221 308.7);
Tailwind
colors: {
  custom: {
    50: '#b473d9',
    500: '#8e31c7',
    950: '#000000',
  },
}
SCSS
$custom: #8e31c7;
$custom-light: #b473d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8e31c7",
  "rgb": {
    "r": 142,
    "g": 49,
    "b": 199
  },
  "hsl": {
    "h": 277.2,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.5223,
    "c": 0.22052,
    "h": 308.7
  },
  "luminance": 0.12071
}

Semantic roles & 50–950 ramp

primary
#8E31C7
secondary
#A1CE86
accent
#E44481
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8E31C7

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

Preview Lab → · Contrast checker → · Palette generator →

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