#8E31C8#8E31C8

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

Color values

HEX#8E31C8
RGBrgb(142, 49, 200)
HSLhsl(277, 61%, 49%)
HSVhsv(277, 76%, 78%)
CMYKcmyk(29%, 75.5%, 0%, 21.6%)
CIE-LABlab(41.40, 62.69, -61.06)
CIE-LCHlch(41.40, 87.51, 315.75°)
OKLaboklab(52.31% 0.1378 -0.1733)
OKLCHoklch(52.31% 0.221 308.5)
XYZxyz(22.6768, 12.1179, 55.7768)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E31C8 #6BC831
analogous
#4331C8 #8E31C8 #C831B7
triadic
#8E31C8 #C88E31 #31C88E
tetradic
#8E31C8 #C84331 #6BC831 #31B7C8
square
#8E31C8 #C84331 #6BC831 #31B7C8
split-complementary
#8E31C8 #B7C831 #31C843
monochromatic
#481966 #6B2597 #8E31C8 #A95FD8 #C390E4

Accessibility & contrast

On white

6.13
#8E31C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#8E31C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E31C8
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E31C8#FFFFFF#000000##FFFFFF
##8E31C81.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECC
Deuteranopia (green-blind)
#0063C5
Tritanopia (blue-blind)
#85567B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8e31c8;
/* rgb */ color: rgb(142, 49, 200);
/* oklch */ color: oklch(52.3% 0.221 308.5);
Tailwind
colors: {
  custom: {
    50: '#b473da',
    500: '#8e31c8',
    950: '#000000',
  },
}
SCSS
$custom: #8e31c8;
$custom-light: #b473da;
$custom-dark: #000000;
JSON
{
  "hex": "#8e31c8",
  "rgb": {
    "r": 142,
    "g": 49,
    "b": 200
  },
  "hsl": {
    "h": 276.954,
    "s": 60.643,
    "l": 48.824
  },
  "oklch": {
    "l": 0.52305,
    "c": 0.22146,
    "h": 308.5
  },
  "luminance": 0.12118
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8E31C8

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

Preview Lab → · Contrast checker → · Palette generator →

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