#8B31CE#8B31CE

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

Color values

HEX#8B31CE
RGBrgb(139, 49, 206)
HSLhsl(274, 62%, 50%)
HSVhsv(274, 76%, 81%)
CMYKcmyk(32.5%, 76.2%, 0%, 19.2%)
CIE-LABlab(41.44, 63.46, -64.49)
CIE-LCHlch(41.44, 90.48, 314.54°)
OKLaboklab(52.39% 0.1325 -0.1835)
OKLCHoklch(52.39% 0.226 305.8)
XYZxyz(22.8839, 12.1420, 59.5186)
Luminance0.1214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B31CE #74CE31
analogous
#3C31CE #8B31CE #CE31C3
triadic
#8B31CE #CE8B31 #31CE8B
tetradic
#8B31CE #CE3C31 #74CE31 #31C3CE
square
#8B31CE #CE3C31 #74CE31 #31C3CE
split-complementary
#8B31CE #C3CE31 #31CE3C
monochromatic
#48196B #6A259D #8B31CE #A762DA #C394E6

Accessibility & contrast

On white

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

On black

3.43
#8B31CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8B31CE#FFFFFF#000000##FFFFFF
##8B31CE1.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD2
Deuteranopia (green-blind)
#0062CB
Tritanopia (blue-blind)
#7F597E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8b31ce;
/* rgb */ color: rgb(139, 49, 206);
/* oklch */ color: oklch(52.4% 0.226 305.8);
Tailwind
colors: {
  custom: {
    50: '#b373de',
    500: '#8b31ce',
    950: '#000000',
  },
}
SCSS
$custom: #8b31ce;
$custom-light: #b373de;
$custom-dark: #000000;
JSON
{
  "hex": "#8b31ce",
  "rgb": {
    "r": 139,
    "g": 49,
    "b": 206
  },
  "hsl": {
    "h": 274.395,
    "s": 61.569,
    "l": 50
  },
  "oklch": {
    "l": 0.52386,
    "c": 0.22638,
    "h": 305.8
  },
  "luminance": 0.12142
}

Semantic roles & 50–950 ramp

primary
#8B31CE
secondary
#A8D18A
accent
#E54388
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8B31CE

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

Preview Lab → · Contrast checker → · Palette generator →

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