#8B34D5#8B34D5

#8B34D5 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 53.2% C 0.230 H 303.9°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#8B34D5
RGBrgb(139, 52, 213)
HSLhsl(272, 66%, 52%)
HSVhsv(272, 76%, 84%)
CMYKcmyk(34.7%, 75.6%, 0%, 16.5%)
CIE-LABlab(42.38, 63.86, -67.00)
CIE-LCHlch(42.38, 92.56, 313.63°)
OKLaboklab(53.22% 0.1284 -0.1909)
OKLCHoklch(53.22% 0.23 303.9)
XYZxyz(23.8829, 12.7491, 64.1405)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B34D5 #7ED534
analogous
#3B34D5 #8B34D5 #D534CF
triadic
#8B34D5 #D58B34 #34D58B
tetradic
#8B34D5 #D53B34 #7ED534 #34CFD5
square
#8B34D5 #D53B34 #7ED534 #34CFD5
split-complementary
#8B34D5 #CFD534 #34D53B
monochromatic
#4B1876 #6B23A9 #8B34D5 #A867DF #C599EA

Accessibility & contrast

On white

5.92
#8B34D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#8B34D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B34D5
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B34D5#FFFFFF#000000##FFFFFF
##8B34D51.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D9
Deuteranopia (green-blind)
#0064D2
Tritanopia (blue-blind)
#7C5D83
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8b34d5;
/* rgb */ color: rgb(139, 52, 213);
/* oklch */ color: oklch(53.2% 0.230 303.9);
Tailwind
colors: {
  custom: {
    50: '#b375e3',
    500: '#8b34d5',
    950: '#000000',
  },
}
SCSS
$custom: #8b34d5;
$custom-light: #b375e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8b34d5",
  "rgb": {
    "r": 139,
    "g": 52,
    "b": 213
  },
  "hsl": {
    "h": 272.422,
    "s": 65.714,
    "l": 51.961
  },
  "oklch": {
    "l": 0.53215,
    "c": 0.23008,
    "h": 303.9
  },
  "luminance": 0.12749
}

Semantic roles & 50–950 ramp

primary
#8B34D5
secondary
#B0D68F
accent
#E93F8D
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8B34D5

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

Preview Lab → · Contrast checker → · Palette generator →

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