#8B3EB5#8B3EB5

#8B3EB5 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 52.0% C 0.186 H 311.4°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#8B3EB5
RGBrgb(139, 62, 181)
HSLhsl(279, 49%, 48%)
HSVhsv(279, 66%, 71%)
CMYKcmyk(23.2%, 65.7%, 0%, 29%)
CIE-LABlab(41.64, 52.41, -49.57)
CIE-LCHlch(41.64, 72.14, 316.59°)
OKLaboklab(51.97% 0.1231 -0.1398)
OKLCHoklch(51.97% 0.186 311.4)
XYZxyz(20.7090, 12.2709, 44.9847)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B3EB5 #68B53E
analogous
#503EB5 #8B3EB5 #B53EA3
triadic
#8B3EB5 #B58B3E #3EB58B
tetradic
#8B3EB5 #B5503E #68B53E #3EA3B5
square
#8B3EB5 #B5503E #68B53E #3EA3B5
split-complementary
#8B3EB5 #A3B53E #3EB550
monochromatic
#451F5A #682E87 #8B3EB5 #A766CA #C193DA

Accessibility & contrast

On white

6.08
#8B3EB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#8B3EB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B3EB5
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B3EB5#FFFFFF#000000##FFFFFF
##8B3EB51.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB9
Deuteranopia (green-blind)
#3164B2
Tritanopia (blue-blind)
#865674
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8b3eb5;
/* rgb */ color: rgb(139, 62, 181);
/* oklch */ color: oklch(52.0% 0.186 311.4);
Tailwind
colors: {
  custom: {
    50: '#b079cc',
    500: '#8b3eb5',
    950: '#000000',
  },
}
SCSS
$custom: #8b3eb5;
$custom-light: #b079cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8b3eb5",
  "rgb": {
    "r": 139,
    "g": 62,
    "b": 181
  },
  "hsl": {
    "h": 278.824,
    "s": 48.971,
    "l": 47.647
  },
  "oklch": {
    "l": 0.51974,
    "c": 0.18628,
    "h": 311.4
  },
  "luminance": 0.1227
}

Semantic roles & 50–950 ramp

primary
#8B3EB5
secondary
#9FC589
accent
#D94F80
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8B3EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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