#8B34D1#8B34D1

#8B34D1 is a mid, highly saturated violet. Relative luminance 0.125; OKLCH L 52.9% C 0.226 H 304.9°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#8B34D1
RGBrgb(139, 52, 209)
HSLhsl(273, 63%, 51%)
HSVhsv(273, 75%, 82%)
CMYKcmyk(33.5%, 75.1%, 0%, 18%)
CIE-LABlab(42.07, 62.97, -65.19)
CIE-LCHlch(42.07, 90.64, 314.00°)
OKLaboklab(52.9% 0.1293 -0.1856)
OKLCHoklch(52.9% 0.226 304.9)
XYZxyz(23.3815, 12.5485, 61.4996)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B34D1 #7AD134
analogous
#3C34D1 #8B34D1 #D134C9
triadic
#8B34D1 #D18B34 #34D18B
tetradic
#8B34D1 #D13C34 #7AD134 #34C9D1
square
#8B34D1 #D13C34 #7AD134 #34C9D1
split-complementary
#8B34D1 #C9D134 #34D13C
monochromatic
#4A1A71 #6B25A3 #8B34D1 #A866DC #C498E8

Accessibility & contrast

On white

5.98
#8B34D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#8B34D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B34D1
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B34D1#FFFFFF#000000##FFFFFF
##8B34D11.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061D5
Deuteranopia (green-blind)
#0063CE
Tritanopia (blue-blind)
#7E5C81
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8b34d1;
/* rgb */ color: rgb(139, 52, 209);
/* oklch */ color: oklch(52.9% 0.226 304.9);
Tailwind
colors: {
  custom: {
    50: '#b374e0',
    500: '#8b34d1',
    950: '#000000',
  },
}
SCSS
$custom: #8b34d1;
$custom-light: #b374e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8b34d1",
  "rgb": {
    "r": 139,
    "g": 52,
    "b": 209
  },
  "hsl": {
    "h": 273.248,
    "s": 63.052,
    "l": 51.176
  },
  "oklch": {
    "l": 0.52903,
    "c": 0.22621,
    "h": 304.9
  },
  "luminance": 0.12548
}

Semantic roles & 50–950 ramp

primary
#8B34D1
secondary
#ADD38E
accent
#E6428B
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8B34D1

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

Preview Lab → · Contrast checker → · Palette generator →

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