#5B34BD#5B34BD

#5B34BD is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 45.9% C 0.200 H 289.0°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#5B34BD
RGBrgb(91, 52, 189)
HSLhsl(257, 57%, 47%)
HSVhsv(257, 72%, 74%)
CMYKcmyk(51.9%, 72.5%, 0%, 25.9%)
CIE-LABlab(34.71, 49.97, -65.81)
CIE-LCHlch(34.71, 82.63, 307.21°)
OKLaboklab(45.93% 0.0652 -0.1891)
OKLCHoklch(45.93% 0.2 289)
XYZxyz(14.7250, 8.3536, 48.9708)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B34BD #96BD34
analogous
#3452BD #5B34BD #9F34BD
triadic
#5B34BD #BD5B34 #34BD5B
tetradic
#5B34BD #BD3452 #96BD34 #34BD9F
square
#5B34BD #BD3452 #96BD34 #34BD9F
split-complementary
#5B34BD #BD9F34 #52BD34
monochromatic
#2D1A5D #44278D #5B34BD #7E5CD2 #A48CDF

Accessibility & contrast

On white

7.86
#5B34BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5B34BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B34BD
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B34BD#FFFFFF#000000##FFFFFF
##5B34BD1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C1
Deuteranopia (green-blind)
#004EBA
Tritanopia (blue-blind)
#375975
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5b34bd;
/* rgb */ color: rgb(91, 52, 189);
/* oklch */ color: oklch(45.9% 0.200 289.0);
Tailwind
colors: {
  custom: {
    50: '#936fd2',
    500: '#5b34bd',
    950: '#000000',
  },
}
SCSS
$custom: #5b34bd;
$custom-light: #936fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b34bd",
  "rgb": {
    "r": 91,
    "g": 52,
    "b": 189
  },
  "hsl": {
    "h": 257.08,
    "s": 56.846,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45928,
    "c": 0.2,
    "h": 289
  },
  "luminance": 0.08354
}

Semantic roles & 50–950 ramp

primary
#5B34BD
secondary
#B6CA83
accent
#E048B5
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B34BD

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

Preview Lab → · Contrast checker → · Palette generator →

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