#5B34BB#5B34BB

#5B34BB is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.8% C 0.198 H 289.4°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#5B34BB
RGBrgb(91, 52, 187)
HSLhsl(257, 56%, 47%)
HSVhsv(257, 72%, 73%)
CMYKcmyk(51.3%, 72.2%, 0%, 26.7%)
CIE-LABlab(34.53, 49.41, -64.91)
CIE-LCHlch(34.53, 81.58, 307.27°)
OKLaboklab(45.75% 0.0657 -0.1864)
OKLCHoklch(45.75% 0.198 289.4)
XYZxyz(14.5094, 8.2673, 47.8353)
Luminance0.0827 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B34BB #94BB34
analogous
#3451BB #5B34BB #9E34BB
triadic
#5B34BB #BB5B34 #34BB5B
tetradic
#5B34BB #BB3451 #94BB34 #34BB9E
square
#5B34BB #BB3451 #94BB34 #34BB9E
split-complementary
#5B34BB #BB9E34 #51BB34
monochromatic
#2C195B #44278B #5B34BB #7D5BD1 #A38BDF

Accessibility & contrast

On white

7.91
#5B34BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B34BB
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B34BB#FFFFFF#000000##FFFFFF
##5B34BB1.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BF
Deuteranopia (green-blind)
#004EB8
Tritanopia (blue-blind)
#385874
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5b34bb;
/* rgb */ color: rgb(91, 52, 187);
/* oklch */ color: oklch(45.8% 0.198 289.4);
Tailwind
colors: {
  custom: {
    50: '#936fd1',
    500: '#5b34bb',
    950: '#000000',
  },
}
SCSS
$custom: #5b34bb;
$custom-light: #936fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b34bb",
  "rgb": {
    "r": 91,
    "g": 52,
    "b": 187
  },
  "hsl": {
    "h": 257.333,
    "s": 56.485,
    "l": 46.863
  },
  "oklch": {
    "l": 0.4575,
    "c": 0.19768,
    "h": 289.4
  },
  "luminance": 0.08268
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B34BB

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

Preview Lab → · Contrast checker → · Palette generator →

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