#5B34BF#5B34BF

#5B34BF is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.1% C 0.202 H 288.7°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#5B34BF
RGBrgb(91, 52, 191)
HSLhsl(257, 57%, 48%)
HSVhsv(257, 73%, 75%)
CMYKcmyk(52.4%, 72.8%, 0%, 25.1%)
CIE-LABlab(34.88, 50.53, -66.69)
CIE-LCHlch(34.88, 83.67, 307.15°)
OKLaboklab(46.11% 0.0648 -0.1917)
OKLCHoklch(46.11% 0.202 288.7)
XYZxyz(14.9436, 8.4410, 50.1220)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B34BF #98BF34
analogous
#3452BF #5B34BF #A134BF
triadic
#5B34BF #BF5B34 #34BF5B
tetradic
#5B34BF #BF3452 #98BF34 #34BFA1
square
#5B34BF #BF3452 #98BF34 #34BFA1
split-complementary
#5B34BF #BFA134 #52BF34
monochromatic
#2D1A5F #44278F #5B34BF #7E5DD3 #A58DE0

Accessibility & contrast

On white

7.81
#5B34BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5B34BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B34BF
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B34BF#FFFFFF#000000##FFFFFF
##5B34BF1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C3
Deuteranopia (green-blind)
#004EBC
Tritanopia (blue-blind)
#355976
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5b34bf;
/* rgb */ color: rgb(91, 52, 191);
/* oklch */ color: oklch(46.1% 0.202 288.7);
Tailwind
colors: {
  custom: {
    50: '#936fd3',
    500: '#5b34bf',
    950: '#000000',
  },
}
SCSS
$custom: #5b34bf;
$custom-light: #936fd3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b34bf",
  "rgb": {
    "r": 91,
    "g": 52,
    "b": 191
  },
  "hsl": {
    "h": 256.835,
    "s": 57.202,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46106,
    "c": 0.20231,
    "h": 288.7
  },
  "luminance": 0.08442
}

Semantic roles & 50–950 ramp

primary
#5B34BF
secondary
#B7CA84
accent
#E047B5
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B34BF

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

Preview Lab → · Contrast checker → · Palette generator →

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