#8B31E8#8B31E8

#8B31E8 is a mid, highly saturated violet. Relative luminance 0.135; OKLCH L 54.5% C 0.251 H 300.1°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#8B31E8
RGBrgb(139, 49, 232)
HSLhsl(270, 80%, 55%)
HSVhsv(270, 79%, 91%)
CMYKcmyk(40.1%, 78.9%, 0%, 9%)
CIE-LABlab(43.52, 69.28, -75.98)
CIE-LCHlch(43.52, 102.83, 312.36°)
OKLaboklab(54.49% 0.1258 -0.2173)
OKLCHoklch(54.49% 0.251 300.1)
XYZxyz(26.3076, 13.5115, 77.5503)
Luminance0.1351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B31E8 #8EE831
analogous
#3133E8 #8B31E8 #E631E8
triadic
#8B31E8 #E88B31 #31E88B
tetradic
#8B31E8 #E83133 #8EE831 #31E8E6
square
#8B31E8 #E83133 #8EE831 #31E8E6
split-complementary
#8B31E8 #E8E631 #33E831
monochromatic
#4E108F #6C16C6 #8B31E8 #AA68EE #C99FF4

Accessibility & contrast

On white

5.67
#8B31E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#8B31E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B31E8
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B31E8#FFFFFF#000000##FFFFFF
##8B31E81.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066ED
Deuteranopia (green-blind)
#0065E5
Tritanopia (blue-blind)
#75648D
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8b31e8;
/* rgb */ color: rgb(139, 49, 232);
/* oklch */ color: oklch(54.5% 0.251 300.1);
Tailwind
colors: {
  custom: {
    50: '#b574f1',
    500: '#8b31e8',
    950: '#000000',
  },
}
SCSS
$custom: #8b31e8;
$custom-light: #b574f1;
$custom-dark: #000000;
JSON
{
  "hex": "#8b31e8",
  "rgb": {
    "r": 139,
    "g": 49,
    "b": 232
  },
  "hsl": {
    "h": 269.508,
    "s": 79.913,
    "l": 55.098
  },
  "oklch": {
    "l": 0.54486,
    "c": 0.25109,
    "h": 300.1
  },
  "luminance": 0.13512
}

Semantic roles & 50–950 ramp

primary
#8B31E8
secondary
#BBE194
accent
#F63196
background
#FBF7FE
surface
#F7EDFD
border
#D0C8D5
text
#120917
muted
#817B85

Preview Lab

Preview with #8B31E8

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

Preview Lab → · Contrast checker → · Palette generator →

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