#5B34B4#5B34B4

#5B34B4 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.1% C 0.189 H 290.7°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#5B34B4
RGBrgb(91, 52, 180)
HSLhsl(258, 55%, 45%)
HSVhsv(258, 71%, 71%)
CMYKcmyk(49.4%, 71.1%, 0%, 29.4%)
CIE-LABlab(33.93, 47.44, -61.76)
CIE-LCHlch(33.93, 77.88, 307.53°)
OKLaboklab(45.14% 0.0671 -0.1772)
OKLCHoklch(45.14% 0.189 290.7)
XYZxyz(13.7782, 7.9749, 43.9845)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B34B4 #8DB434
analogous
#344DB4 #5B34B4 #9B34B4
triadic
#5B34B4 #B45B34 #34B45B
tetradic
#5B34B4 #B4344D #8DB434 #34B49B
square
#5B34B4 #B4344D #8DB434 #34B49B
split-complementary
#5B34B4 #B49B34 #4DB434
monochromatic
#2B1955 #432685 #5B34B4 #7B57CE #A086DC

Accessibility & contrast

On white

8.09
#5B34B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5B34B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B34B4
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B34B4#FFFFFF#000000##FFFFFF
##5B34B41.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#004DB2
Tritanopia (blue-blind)
#3D5570
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5b34b4;
/* rgb */ color: rgb(91, 52, 180);
/* oklch */ color: oklch(45.1% 0.189 290.7);
Tailwind
colors: {
  custom: {
    50: '#926fcb',
    500: '#5b34b4',
    950: '#000000',
  },
}
SCSS
$custom: #5b34b4;
$custom-light: #926fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b34b4",
  "rgb": {
    "r": 91,
    "g": 52,
    "b": 180
  },
  "hsl": {
    "h": 258.281,
    "s": 55.172,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45136,
    "c": 0.18948,
    "h": 290.7
  },
  "luminance": 0.07975
}

Semantic roles & 50–950 ramp

primary
#5B34B4
secondary
#B0C67E
accent
#DF49B1
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0713
muted
#7E7A82

Preview Lab

Preview with #5B34B4

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

Preview Lab → · Contrast checker → · Palette generator →

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