#8B34CC#8B34CC

#8B34CC is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.5% C 0.221 H 306.1°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#8B34CC
RGBrgb(139, 52, 204)
HSLhsl(274, 60%, 50%)
HSVhsv(274, 75%, 80%)
CMYKcmyk(31.9%, 74.5%, 0%, 20%)
CIE-LABlab(41.70, 61.85, -62.92)
CIE-LCHlch(41.70, 88.23, 314.51°)
OKLaboklab(52.52% 0.1303 -0.1789)
OKLCHoklch(52.52% 0.221 306.1)
XYZxyz(22.7721, 12.3048, 58.2904)
Luminance0.1231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B34CC #75CC34
analogous
#3F34CC #8B34CC #CC34C1
triadic
#8B34CC #CC8B34 #34CC8B
tetradic
#8B34CC #CC3F34 #75CC34 #34C1CC
square
#8B34CC #CC3F34 #75CC34 #34C1CC
split-complementary
#8B34CC #C1CC34 #34CC3F
monochromatic
#491B6B #6A279C #8B34CC #A765D8 #C396E5

Accessibility & contrast

On white

6.07
#8B34CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#8B34CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B34CC
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B34CC#FFFFFF#000000##FFFFFF
##8B34CC1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D0
Deuteranopia (green-blind)
#0063C9
Tritanopia (blue-blind)
#7F597E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8b34cc;
/* rgb */ color: rgb(139, 52, 204);
/* oklch */ color: oklch(52.5% 0.221 306.1);
Tailwind
colors: {
  custom: {
    50: '#b274dc',
    500: '#8b34cc',
    950: '#000000',
  },
}
SCSS
$custom: #8b34cc;
$custom-light: #b274dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8b34cc",
  "rgb": {
    "r": 139,
    "g": 52,
    "b": 204
  },
  "hsl": {
    "h": 274.342,
    "s": 59.843,
    "l": 50.196
  },
  "oklch": {
    "l": 0.52518,
    "c": 0.22137,
    "h": 306.1
  },
  "luminance": 0.12305
}

Semantic roles & 50–950 ramp

primary
#8B34CC
secondary
#A9D08C
accent
#E34588
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8B34CC

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

Preview Lab → · Contrast checker → · Palette generator →

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