#8B31C0#8B31C0

#8B31C0 is a mid, highly saturated violet. Relative luminance 0.115; OKLCH L 51.3% C 0.213 H 309.4°. Best body text is #FFFFFF at 6.37:1 contrast (WCAG AA passes).

Color values

HEX#8B31C0
RGBrgb(139, 49, 192)
HSLhsl(278, 59%, 47%)
HSVhsv(278, 74%, 75%)
CMYKcmyk(27.6%, 74.5%, 0%, 24.7%)
CIE-LABlab(40.40, 60.42, -58.04)
CIE-LCHlch(40.40, 83.78, 316.15°)
OKLaboklab(51.32% 0.1353 -0.1646)
OKLCHoklch(51.32% 0.213 309.4)
XYZxyz(21.2583, 11.4918, 50.9572)
Luminance0.1149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B31C0 #66C031
analogous
#4331C0 #8B31C0 #C031AE
triadic
#8B31C0 #C08B31 #31C08B
tetradic
#8B31C0 #C04331 #66C031 #31AEC0
square
#8B31C0 #C04331 #66C031 #31AEC0
split-complementary
#8B31C0 #AEC031 #31C043
monochromatic
#44185E #68258F #8B31C0 #A759D5 #C18AE1

Accessibility & contrast

On white

6.37
#8B31C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#8B31C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B31C0
6.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B31C0#FFFFFF#000000##FFFFFF
##8B31C01.006.373.306.37
#FFFFFF6.371.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC4
Deuteranopia (green-blind)
#0460BD
Tritanopia (blue-blind)
#835376
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8b31c0;
/* rgb */ color: rgb(139, 49, 192);
/* oklch */ color: oklch(51.3% 0.213 309.4);
Tailwind
colors: {
  custom: {
    50: '#b272d4',
    500: '#8b31c0',
    950: '#000000',
  },
}
SCSS
$custom: #8b31c0;
$custom-light: #b272d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8b31c0",
  "rgb": {
    "r": 139,
    "g": 49,
    "b": 192
  },
  "hsl": {
    "h": 277.762,
    "s": 59.336,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51323,
    "c": 0.21309,
    "h": 309.4
  },
  "luminance": 0.11491
}

Semantic roles & 50–950 ramp

primary
#8B31C0
secondary
#9DCB82
accent
#E34580
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8B31C0

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

Preview Lab → · Contrast checker → · Palette generator →

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