#5B34BA#5B34BA

#5B34BA is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.7% C 0.197 H 289.6°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#5B34BA
RGBrgb(91, 52, 186)
HSLhsl(257, 56%, 47%)
HSVhsv(257, 72%, 73%)
CMYKcmyk(51.1%, 72%, 0%, 27.1%)
CIE-LABlab(34.45, 49.12, -64.47)
CIE-LCHlch(34.45, 81.05, 307.31°)
OKLaboklab(45.66% 0.0659 -0.1851)
OKLCHoklch(45.66% 0.197 289.6)
XYZxyz(14.4027, 8.2247, 47.2735)
Luminance0.0823 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B34BA #93BA34
analogous
#3450BA #5B34BA #9E34BA
triadic
#5B34BA #BA5B34 #34BA5B
tetradic
#5B34BA #BA3450 #93BA34 #34BA9E
square
#5B34BA #BA3450 #93BA34 #34BA9E
split-complementary
#5B34BA #BA9E34 #50BA34
monochromatic
#2C195A #44278A #5B34BA #7D5AD1 #A38ADE

Accessibility & contrast

On white

7.94
#5B34BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5B34BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B34BA
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B34BA#FFFFFF#000000##FFFFFF
##5B34BA1.007.942.657.94
#FFFFFF7.941.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BE
Deuteranopia (green-blind)
#004EB7
Tritanopia (blue-blind)
#395774
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5b34ba;
/* rgb */ color: rgb(91, 52, 186);
/* oklch */ color: oklch(45.7% 0.197 289.6);
Tailwind
colors: {
  custom: {
    50: '#936fd0',
    500: '#5b34ba',
    950: '#000000',
  },
}
SCSS
$custom: #5b34ba;
$custom-light: #936fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b34ba",
  "rgb": {
    "r": 91,
    "g": 52,
    "b": 186
  },
  "hsl": {
    "h": 257.463,
    "s": 56.303,
    "l": 46.667
  },
  "oklch": {
    "l": 0.45661,
    "c": 0.1965,
    "h": 289.6
  },
  "luminance": 0.08225
}

Semantic roles & 50–950 ramp

primary
#5B34BA
secondary
#B4C881
accent
#E048B4
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0714
muted
#7E7A82

Preview Lab

Preview with #5B34BA

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

Preview Lab → · Contrast checker → · Palette generator →

#5B34BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva