#8B34B2#8B34B2

#8B34B2 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.6% C 0.196 H 313.2°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#8B34B2
RGBrgb(139, 52, 178)
HSLhsl(281, 55%, 45%)
HSVhsv(281, 71%, 70%)
CMYKcmyk(21.9%, 70.8%, 0%, 30.2%)
CIE-LABlab(39.85, 56.22, -50.69)
CIE-LCHlch(39.85, 75.70, 317.96°)
OKLaboklab(50.63% 0.1344 -0.143)
OKLCHoklch(50.63% 0.196 313.2)
XYZxyz(19.9099, 11.1599, 43.2161)
Luminance0.1116 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B34B2 #5BB234
analogous
#4C34B2 #8B34B2 #B2349A
triadic
#8B34B2 #B28B34 #34B28B
tetradic
#8B34B2 #B24C34 #5BB234 #349AB2
square
#8B34B2 #B24C34 #5BB234 #349AB2
split-complementary
#8B34B2 #9AB234 #34B24C
monochromatic
#411853 #662683 #8B34B2 #A856CE #C185DB

Accessibility & contrast

On white

6.50
#8B34B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#8B34B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B34B2
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B34B2#FFFFFF#000000##FFFFFF
##8B34B21.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B6
Deuteranopia (green-blind)
#2A60AF
Tritanopia (blue-blind)
#874F6F
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8b34b2;
/* rgb */ color: rgb(139, 52, 178);
/* oklch */ color: oklch(50.6% 0.196 313.2);
Tailwind
colors: {
  custom: {
    50: '#b173ca',
    500: '#8b34b2',
    950: '#000000',
  },
}
SCSS
$custom: #8b34b2;
$custom-light: #b173ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8b34b2",
  "rgb": {
    "r": 139,
    "g": 52,
    "b": 178
  },
  "hsl": {
    "h": 281.429,
    "s": 54.783,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50625,
    "c": 0.19626,
    "h": 313.2
  },
  "luminance": 0.11159
}

Semantic roles & 50–950 ramp

primary
#8B34B2
secondary
#93C57D
accent
#DE4A78
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8B34B2

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

Preview Lab → · Contrast checker → · Palette generator →

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