#8B34C2#8B34C2

#8B34C2 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.8% C 0.212 H 308.6°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#8B34C2
RGBrgb(139, 52, 194)
HSLhsl(277, 58%, 48%)
HSVhsv(277, 73%, 76%)
CMYKcmyk(28.4%, 73.2%, 0%, 23.9%)
CIE-LABlab(40.96, 59.65, -58.30)
CIE-LCHlch(40.96, 83.41, 315.66°)
OKLaboklab(51.77% 0.1322 -0.1654)
OKLCHoklch(51.77% 0.212 308.6)
XYZxyz(21.6111, 11.8404, 52.1754)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B34C2 #6BC234
analogous
#4434C2 #8B34C2 #C234B2
triadic
#8B34C2 #C28B34 #34C28B
tetradic
#8B34C2 #C24434 #6BC234 #34B2C2
square
#8B34C2 #C24434 #6BC234 #34B2C2
split-complementary
#8B34C2 #B2C234 #34C244
monochromatic
#461A61 #682792 #8B34C2 #A75FD4 #C18FE1

Accessibility & contrast

On white

6.24
#8B34C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#8B34C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B34C2
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B34C2#FFFFFF#000000##FFFFFF
##8B34C21.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DC6
Deuteranopia (green-blind)
#0562BF
Tritanopia (blue-blind)
#825578
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8b34c2;
/* rgb */ color: rgb(139, 52, 194);
/* oklch */ color: oklch(51.8% 0.212 308.6);
Tailwind
colors: {
  custom: {
    50: '#b274d5',
    500: '#8b34c2',
    950: '#000000',
  },
}
SCSS
$custom: #8b34c2;
$custom-light: #b274d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8b34c2",
  "rgb": {
    "r": 139,
    "g": 52,
    "b": 194
  },
  "hsl": {
    "h": 276.761,
    "s": 57.724,
    "l": 48.235
  },
  "oklch": {
    "l": 0.51768,
    "c": 0.2117,
    "h": 308.6
  },
  "luminance": 0.1184
}

Semantic roles & 50–950 ramp

primary
#8B34C2
secondary
#A1CC86
accent
#E14783
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8B34C2

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

Preview Lab → · Contrast checker → · Palette generator →

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