#8E31E2#8E31E2

#8E31E2 is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 54.3% C 0.246 H 302.4°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#8E31E2
RGBrgb(142, 49, 226)
HSLhsl(272, 75%, 54%)
HSVhsv(272, 78%, 89%)
CMYKcmyk(37.2%, 78.3%, 0%, 11.4%)
CIE-LABlab(43.42, 68.38, -72.73)
CIE-LCHlch(43.42, 99.83, 313.23°)
OKLaboklab(54.34% 0.1317 -0.2077)
OKLCHoklch(54.34% 0.246 302.4)
XYZxyz(25.9778, 13.4383, 73.1620)
Luminance0.1344 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E31E2 #85E231
analogous
#3631E2 #8E31E2 #E231DE
triadic
#8E31E2 #E28E31 #31E28E
tetradic
#8E31E2 #E23631 #85E231 #31DEE2
square
#8E31E2 #E23631 #85E231 #31DEE2
split-complementary
#8E31E2 #DEE231 #31E236
monochromatic
#4F1386 #6F1ABB #8E31E2 #AB67EA #C99CF1

Accessibility & contrast

On white

5.69
#8E31E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#8E31E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8E31E2
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E31E2#FFFFFF#000000##FFFFFF
##8E31E21.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E7
Deuteranopia (green-blind)
#0066DF
Tritanopia (blue-blind)
#7C618A
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8e31e2;
/* rgb */ color: rgb(142, 49, 226);
/* oklch */ color: oklch(54.3% 0.246 302.4);
Tailwind
colors: {
  custom: {
    50: '#b674ec',
    500: '#8e31e2',
    950: '#000000',
  },
}
SCSS
$custom: #8e31e2;
$custom-light: #b674ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8e31e2",
  "rgb": {
    "r": 142,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 271.525,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54342,
    "c": 0.2459,
    "h": 302.4
  },
  "luminance": 0.13438
}

Semantic roles & 50–950 ramp

primary
#8E31E2
secondary
#B5DD92
accent
#F2368F
background
#FBF7FE
surface
#F7EDFD
border
#D0C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8E31E2

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

Preview Lab → · Contrast checker → · Palette generator →

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