#8B31E2#8B31E2

#8B31E2 is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 54.0% C 0.245 H 301.3°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#8B31E2
RGBrgb(139, 49, 226)
HSLhsl(271, 75%, 54%)
HSVhsv(271, 78%, 89%)
CMYKcmyk(38.5%, 78.3%, 0%, 11.4%)
CIE-LABlab(43.03, 67.92, -73.38)
CIE-LCHlch(43.03, 99.99, 312.79°)
OKLaboklab(53.99% 0.1275 -0.2097)
OKLCHoklch(53.99% 0.245 301.3)
XYZxyz(25.4699, 13.1764, 73.1382)
Luminance0.1318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B31E2 #88E231
analogous
#3331E2 #8B31E2 #E231E1
triadic
#8B31E2 #E28B31 #31E28B
tetradic
#8B31E2 #E23331 #88E231 #31E1E2
square
#8B31E2 #E23331 #88E231 #31E1E2
split-complementary
#8B31E2 #E1E231 #31E233
monochromatic
#4D1386 #6C1ABB #8B31E2 #A967EA #C79CF1

Accessibility & contrast

On white

5.78
#8B31E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#8B31E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B31E2
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B31E2#FFFFFF#000000##FFFFFF
##8B31E21.005.783.645.78
#FFFFFF5.781.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8b31e2;
/* rgb */ color: rgb(139, 49, 226);
/* oklch */ color: oklch(54.0% 0.245 301.3);
Tailwind
colors: {
  custom: {
    50: '#b474ec',
    500: '#8b31e2',
    950: '#000000',
  },
}
SCSS
$custom: #8b31e2;
$custom-light: #b474ec;
$custom-dark: #000000;
JSON
{
  "hex": "#8b31e2",
  "rgb": {
    "r": 139,
    "g": 49,
    "b": 226
  },
  "hsl": {
    "h": 270.508,
    "s": 75.319,
    "l": 53.922
  },
  "oklch": {
    "l": 0.53988,
    "c": 0.2454,
    "h": 301.3
  },
  "luminance": 0.13177
}

Semantic roles & 50–950 ramp

primary
#8B31E2
secondary
#B7DD92
accent
#F23692
background
#FBF7FE
surface
#F7EDFD
border
#D0C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8B31E2

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

Preview Lab → · Contrast checker → · Palette generator →

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