#8B34CB#8B34CB

#8B34CB is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.4% C 0.220 H 306.3°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#8B34CB
RGBrgb(139, 52, 203)
HSLhsl(275, 59%, 50%)
HSVhsv(275, 74%, 80%)
CMYKcmyk(31.5%, 74.4%, 0%, 20.4%)
CIE-LABlab(41.62, 61.63, -62.46)
CIE-LCHlch(41.62, 87.75, 314.62°)
OKLaboklab(52.44% 0.1305 -0.1776)
OKLCHoklch(52.44% 0.22 306.3)
XYZxyz(22.6526, 12.2570, 57.6608)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B34CB #74CB34
analogous
#4034CB #8B34CB #CB34BF
triadic
#8B34CB #CB8B34 #34CB8B
tetradic
#8B34CB #CB4034 #74CB34 #34BFCB
square
#8B34CB #CB4034 #74CB34 #34BFCB
split-complementary
#8B34CB #BFCB34 #34CB40
monochromatic
#481B6A #6A289A #8B34CB #A765D7 #C395E4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8B34CB#FFFFFF#000000##FFFFFF
##8B34CB1.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)
#0060CF
Deuteranopia (green-blind)
#0063C8
Tritanopia (blue-blind)
#80597D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8b34cb;
/* rgb */ color: rgb(139, 52, 203);
/* oklch */ color: oklch(52.4% 0.220 306.3);
Tailwind
colors: {
  custom: {
    50: '#b274dc',
    500: '#8b34cb',
    950: '#000000',
  },
}
SCSS
$custom: #8b34cb;
$custom-light: #b274dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8b34cb",
  "rgb": {
    "r": 139,
    "g": 52,
    "b": 203
  },
  "hsl": {
    "h": 274.57,
    "s": 59.216,
    "l": 50
  },
  "oklch": {
    "l": 0.52442,
    "c": 0.2204,
    "h": 306.3
  },
  "luminance": 0.12257
}

Semantic roles & 50–950 ramp

primary
#8B34CB
secondary
#A8CF8C
accent
#E24588
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8B34CB

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

Preview Lab → · Contrast checker → · Palette generator →

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