#5B34CA#5B34CA

#5B34CA is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.1% C 0.215 H 286.8°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#5B34CA
RGBrgb(91, 52, 202)
HSLhsl(256, 59%, 50%)
HSVhsv(256, 74%, 79%)
CMYKcmyk(55%, 74.3%, 0%, 20.8%)
CIE-LABlab(35.88, 53.62, -71.50)
CIE-LCHlch(35.88, 89.37, 306.87°)
OKLaboklab(47.11% 0.0622 -0.2057)
OKLCHoklch(47.11% 0.215 286.8)
XYZxyz(16.1999, 8.9435, 56.7383)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B34CA #A3CA34
analogous
#3458CA #5B34CA #A634CA
triadic
#5B34CA #CA5B34 #34CA5B
tetradic
#5B34CA #CA3458 #A3CA34 #34CAA6
square
#5B34CA #CA3458 #A3CA34 #34CAA6
split-complementary
#5B34CA #CAA634 #58CA34
monochromatic
#2F1B69 #452799 #5B34CA #8264D7 #A995E4

Accessibility & contrast

On white

7.53
#5B34CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5B34CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B34CA
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B34CA#FFFFFF#000000##FFFFFF
##5B34CA1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CE
Deuteranopia (green-blind)
#0050C7
Tritanopia (blue-blind)
#2A5E7D
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b34ca;
/* rgb */ color: rgb(91, 52, 202);
/* oklch */ color: oklch(47.1% 0.215 286.8);
Tailwind
colors: {
  custom: {
    50: '#9570db',
    500: '#5b34ca',
    950: '#000000',
  },
}
SCSS
$custom: #5b34ca;
$custom-light: #9570db;
$custom-dark: #000000;
JSON
{
  "hex": "#5b34ca",
  "rgb": {
    "r": 91,
    "g": 52,
    "b": 202
  },
  "hsl": {
    "h": 255.6,
    "s": 59.055,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47107,
    "c": 0.21494,
    "h": 286.8
  },
  "luminance": 0.08944
}

Semantic roles & 50–950 ramp

primary
#5B34CA
secondary
#BDCF8B
accent
#E246BA
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B34CA

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

Preview Lab → · Contrast checker → · Palette generator →

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