#5B34BC#5B34BC

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

Color values

HEX#5B34BC
RGBrgb(91, 52, 188)
HSLhsl(257, 57%, 47%)
HSVhsv(257, 72%, 74%)
CMYKcmyk(51.6%, 72.3%, 0%, 26.3%)
CIE-LABlab(34.62, 49.69, -65.36)
CIE-LCHlch(34.62, 82.10, 307.24°)
OKLaboklab(45.84% 0.0654 -0.1878)
OKLCHoklch(45.84% 0.199 289.2)
XYZxyz(14.6168, 8.3103, 48.4011)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B34BC #95BC34
analogous
#3451BC #5B34BC #9F34BC
triadic
#5B34BC #BC5B34 #34BC5B
tetradic
#5B34BC #BC3451 #95BC34 #34BC9F
square
#5B34BC #BC3451 #95BC34 #34BC9F
split-complementary
#5B34BC #BC9F34 #51BC34
monochromatic
#2D195C #44278C #5B34BC #7D5BD2 #A38BDF

Accessibility & contrast

On white

7.89
#5B34BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5B34BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B34BC
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B34BC#FFFFFF#000000##FFFFFF
##5B34BC1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C0
Deuteranopia (green-blind)
#004EB9
Tritanopia (blue-blind)
#375875
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5b34bc;
/* rgb */ color: rgb(91, 52, 188);
/* oklch */ color: oklch(45.8% 0.199 289.2);
Tailwind
colors: {
  custom: {
    50: '#936fd1',
    500: '#5b34bc',
    950: '#000000',
  },
}
SCSS
$custom: #5b34bc;
$custom-light: #936fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b34bc",
  "rgb": {
    "r": 91,
    "g": 52,
    "b": 188
  },
  "hsl": {
    "h": 257.206,
    "s": 56.667,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45838,
    "c": 0.19884,
    "h": 289.2
  },
  "luminance": 0.08311
}

Semantic roles & 50–950 ramp

primary
#5B34BC
secondary
#B5C983
accent
#E048B4
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B34BC

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

Preview Lab → · Contrast checker → · Palette generator →

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