#8D31CE#8D31CE

#8D31CE is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.6% C 0.227 H 306.6°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#8D31CE
RGBrgb(141, 49, 206)
HSLhsl(275, 62%, 50%)
HSVhsv(275, 76%, 81%)
CMYKcmyk(31.6%, 76.2%, 0%, 19.2%)
CIE-LABlab(41.71, 63.81, -64.04)
CIE-LCHlch(41.71, 90.40, 314.90°)
OKLaboklab(52.64% 0.1352 -0.1821)
OKLCHoklch(52.64% 0.227 306.6)
XYZxyz(23.2210, 12.3158, 59.5344)
Luminance0.1232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D31CE #72CE31
analogous
#3E31CE #8D31CE #CE31C1
triadic
#8D31CE #CE8D31 #31CE8D
tetradic
#8D31CE #CE3E31 #72CE31 #31C1CE
square
#8D31CE #CE3E31 #72CE31 #31C1CE
split-complementary
#8D31CE #C1CE31 #31CE3E
monochromatic
#49196B #6B259D #8D31CE #A862DA #C494E6

Accessibility & contrast

On white

6.06
#8D31CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#8D31CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D31CE
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D31CE#FFFFFF#000000##FFFFFF
##8D31CE1.006.063.466.06
#FFFFFF6.061.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D2
Deuteranopia (green-blind)
#0063CB
Tritanopia (blue-blind)
#82597E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8d31ce;
/* rgb */ color: rgb(141, 49, 206);
/* oklch */ color: oklch(52.6% 0.227 306.6);
Tailwind
colors: {
  custom: {
    50: '#b473de',
    500: '#8d31ce',
    950: '#000000',
  },
}
SCSS
$custom: #8d31ce;
$custom-light: #b473de;
$custom-dark: #000000;
JSON
{
  "hex": "#8d31ce",
  "rgb": {
    "r": 141,
    "g": 49,
    "b": 206
  },
  "hsl": {
    "h": 275.159,
    "s": 61.569,
    "l": 50
  },
  "oklch": {
    "l": 0.52635,
    "c": 0.22685,
    "h": 306.6
  },
  "luminance": 0.12316
}

Semantic roles & 50–950 ramp

primary
#8D31CE
secondary
#A7D18A
accent
#E54386
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8D31CE

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

Preview Lab → · Contrast checker → · Palette generator →

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