#5B34BE#5B34BE

#5B34BE is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.0% C 0.201 H 288.9°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#5B34BE
RGBrgb(91, 52, 190)
HSLhsl(257, 57%, 47%)
HSVhsv(257, 73%, 75%)
CMYKcmyk(52.1%, 72.6%, 0%, 25.5%)
CIE-LABlab(34.80, 50.25, -66.25)
CIE-LCHlch(34.80, 83.15, 307.18°)
OKLaboklab(46.02% 0.065 -0.1904)
OKLCHoklch(46.02% 0.201 288.9)
XYZxyz(14.8339, 8.3971, 49.5444)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B34BE #97BE34
analogous
#3452BE #5B34BE #A034BE
triadic
#5B34BE #BE5B34 #34BE5B
tetradic
#5B34BE #BE3452 #97BE34 #34BEA0
square
#5B34BE #BE3452 #97BE34 #34BEA0
split-complementary
#5B34BE #BEA034 #52BE34
monochromatic
#2D1A5E #44278E #5B34BE #7E5DD3 #A48DE0

Accessibility & contrast

On white

7.84
#5B34BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5B34BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B34BE
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B34BE#FFFFFF#000000##FFFFFF
##5B34BE1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C2
Deuteranopia (green-blind)
#004EBB
Tritanopia (blue-blind)
#365976
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5b34be;
/* rgb */ color: rgb(91, 52, 190);
/* oklch */ color: oklch(46.0% 0.201 288.9);
Tailwind
colors: {
  custom: {
    50: '#936fd3',
    500: '#5b34be',
    950: '#000000',
  },
}
SCSS
$custom: #5b34be;
$custom-light: #936fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b34be",
  "rgb": {
    "r": 91,
    "g": 52,
    "b": 190
  },
  "hsl": {
    "h": 256.957,
    "s": 57.025,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46017,
    "c": 0.20115,
    "h": 288.9
  },
  "luminance": 0.08398
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B34BE

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

Preview Lab → · Contrast checker → · Palette generator →

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