#8C34CB#8C34CB

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

Color values

HEX#8C34CB
RGBrgb(140, 52, 203)
HSLhsl(275, 59%, 50%)
HSVhsv(275, 74%, 80%)
CMYKcmyk(31%, 74.4%, 0%, 20.4%)
CIE-LABlab(41.76, 61.81, -62.24)
CIE-LCHlch(41.76, 87.72, 314.80°)
OKLaboklab(52.57% 0.1319 -0.1769)
OKLCHoklch(52.57% 0.221 306.7)
XYZxyz(22.8204, 12.3435, 57.6687)
Luminance0.1234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C34CB #73CB34
analogous
#4034CB #8C34CB #CB34BF
triadic
#8C34CB #CB8C34 #34CB8C
tetradic
#8C34CB #CB4034 #73CB34 #34BFCB
square
#8C34CB #CB4034 #73CB34 #34BFCB
split-complementary
#8C34CB #BFCB34 #34CB40
monochromatic
#491B6A #6A289A #8C34CB #A865D7 #C395E4

Accessibility & contrast

On white

6.05
#8C34CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#8C34CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C34CB
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C34CB#FFFFFF#000000##FFFFFF
##8C34CB1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CF
Deuteranopia (green-blind)
#0063C8
Tritanopia (blue-blind)
#81597D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8c34cb;
/* rgb */ color: rgb(140, 52, 203);
/* oklch */ color: oklch(52.6% 0.221 306.7);
Tailwind
colors: {
  custom: {
    50: '#b374dc',
    500: '#8c34cb',
    950: '#000000',
  },
}
SCSS
$custom: #8c34cb;
$custom-light: #b374dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8c34cb",
  "rgb": {
    "r": 140,
    "g": 52,
    "b": 203
  },
  "hsl": {
    "h": 274.967,
    "s": 59.216,
    "l": 50
  },
  "oklch": {
    "l": 0.52566,
    "c": 0.22065,
    "h": 306.7
  },
  "luminance": 0.12343
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8C34CB

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

Preview Lab → · Contrast checker → · Palette generator →

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