#8B3EC5#8B3EC5

#8B3EC5 is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.1% C 0.203 H 306.9°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#8B3EC5
RGBrgb(139, 62, 197)
HSLhsl(274, 54%, 51%)
HSVhsv(274, 69%, 77%)
CMYKcmyk(29.4%, 68.5%, 0%, 22.7%)
CIE-LABlab(42.71, 55.99, -57.21)
CIE-LCHlch(42.71, 80.05, 314.38°)
OKLaboklab(53.08% 0.1216 -0.1622)
OKLCHoklch(53.08% 0.203 306.9)
XYZxyz(22.4460, 12.9657, 54.1327)
Luminance0.1296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B3EC5 #78C53E
analogous
#473EC5 #8B3EC5 #C53EBC
triadic
#8B3EC5 #C58B3E #3EC58B
tetradic
#8B3EC5 #C5473E #78C53E #3EBCC5
square
#8B3EC5 #C5473E #78C53E #3EBCC5
split-complementary
#8B3EC5 #BCC53E #3EC547
monochromatic
#492069 #6A2E98 #8B3EC5 #A76DD3 #C49CE1

Accessibility & contrast

On white

5.84
#8B3EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#8B3EC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B3EC5
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B3EC5#FFFFFF#000000##FFFFFF
##8B3EC51.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C9
Deuteranopia (green-blind)
#1865C2
Tritanopia (blue-blind)
#815C7D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8b3ec5;
/* rgb */ color: rgb(139, 62, 197);
/* oklch */ color: oklch(53.1% 0.203 306.9);
Tailwind
colors: {
  custom: {
    50: '#b179d7',
    500: '#8b3ec5',
    950: '#000000',
  },
}
SCSS
$custom: #8b3ec5;
$custom-light: #b179d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8b3ec5",
  "rgb": {
    "r": 139,
    "g": 62,
    "b": 197
  },
  "hsl": {
    "h": 274.222,
    "s": 53.785,
    "l": 50.784
  },
  "oklch": {
    "l": 0.5308,
    "c": 0.20277,
    "h": 306.9
  },
  "luminance": 0.12965
}

Semantic roles & 50–950 ramp

primary
#8B3EC5
secondary
#ABCD91
accent
#DD4B8A
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8B3EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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