#8B34C6#8B34C6

#8B34C6 is a mid, highly saturated violet. Relative luminance 0.120; OKLCH L 52.1% C 0.216 H 307.6°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#8B34C6
RGBrgb(139, 52, 198)
HSLhsl(276, 58%, 49%)
HSVhsv(276, 74%, 78%)
CMYKcmyk(29.8%, 73.7%, 0%, 22.4%)
CIE-LABlab(41.25, 60.53, -60.16)
CIE-LCHlch(41.25, 85.34, 315.18°)
OKLaboklab(52.07% 0.1315 -0.1708)
OKLCHoklch(52.07% 0.216 307.6)
XYZxyz(22.0663, 12.0225, 54.5732)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B34C6 #6FC634
analogous
#4234C6 #8B34C6 #C634B8
triadic
#8B34C6 #C68B34 #34C68B
tetradic
#8B34C6 #C64234 #6FC634 #34B8C6
square
#8B34C6 #C64234 #6FC634 #34B8C6
split-complementary
#8B34C6 #B8C634 #34C642
monochromatic
#471B65 #692796 #8B34C6 #A762D6 #C292E2

Accessibility & contrast

On white

6.17
#8B34C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#8B34C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B34C6
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B34C6#FFFFFF#000000##FFFFFF
##8B34C61.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ECA
Deuteranopia (green-blind)
#0062C3
Tritanopia (blue-blind)
#81577B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8b34c6;
/* rgb */ color: rgb(139, 52, 198);
/* oklch */ color: oklch(52.1% 0.216 307.6);
Tailwind
colors: {
  custom: {
    50: '#b274d8',
    500: '#8b34c6',
    950: '#000000',
  },
}
SCSS
$custom: #8b34c6;
$custom-light: #b274d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8b34c6",
  "rgb": {
    "r": 139,
    "g": 52,
    "b": 198
  },
  "hsl": {
    "h": 275.753,
    "s": 58.4,
    "l": 49.02
  },
  "oklch": {
    "l": 0.52065,
    "c": 0.21557,
    "h": 307.6
  },
  "luminance": 0.12022
}

Semantic roles & 50–950 ramp

primary
#8B34C6
secondary
#A4CD89
accent
#E24685
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110915
muted
#807B83

Preview Lab

Preview with #8B34C6

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

Preview Lab → · Contrast checker → · Palette generator →

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