#8D31E2#8D31E2

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

Color values

HEX#8D31E2
RGBrgb(141, 49, 226)
HSLhsl(271, 75%, 54%)
HSVhsv(271, 78%, 89%)
CMYKcmyk(37.6%, 78.3%, 0%, 11.4%)
CIE-LABlab(43.29, 68.23, -72.95)
CIE-LCHlch(43.29, 99.88, 313.08°)
OKLaboklab(54.22% 0.1303 -0.2083)
OKLCHoklch(54.22% 0.246 302)
XYZxyz(25.8070, 13.3502, 73.1540)
Luminance0.1335 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D31E2 #86E231
analogous
#3531E2 #8D31E2 #E231DF
triadic
#8D31E2 #E28D31 #31E28D
tetradic
#8D31E2 #E23531 #86E231 #31DFE2
square
#8D31E2 #E23531 #86E231 #31DFE2
split-complementary
#8D31E2 #DFE231 #31E235
monochromatic
#4F1386 #6E1ABB #8D31E2 #AB67EA #C89CF1

Accessibility & contrast

On white

5.72
#8D31E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#8D31E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D31E2
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D31E2#FFFFFF#000000##FFFFFF
##8D31E21.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065E7
Deuteranopia (green-blind)
#0065DF
Tritanopia (blue-blind)
#7A618A
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8d31e2;
/* rgb */ color: rgb(141, 49, 226);
/* oklch */ color: oklch(54.2% 0.246 302.0);
Tailwind
colors: {
  custom: {
    50: '#b674ec',
    500: '#8d31e2',
    950: '#000000',
  },
}
SCSS
$custom: #8d31e2;
$custom-light: #b674ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8d31e2",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 271.186,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54223,
    "c": 0.24573,
    "h": 302
  },
  "luminance": 0.1335
}

Semantic roles & 50–950 ramp

primary
#8D31E2
secondary
#B6DD92
accent
#F23690
background
#FBF7FE
surface
#F7EDFD
border
#D0C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8D31E2

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

Preview Lab → · Contrast checker → · Palette generator →

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