#5B3CB2#5B3CB2

#5B3CB2 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.1% C 0.177 H 289.7°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#5B3CB2
RGBrgb(91, 60, 178)
HSLhsl(256, 50%, 47%)
HSVhsv(256, 66%, 70%)
CMYKcmyk(48.9%, 66.3%, 0%, 30.2%)
CIE-LABlab(35.34, 42.54, -58.27)
CIE-LCHlch(35.34, 72.14, 306.13°)
OKLaboklab(46.09% 0.0597 -0.167)
OKLCHoklch(46.09% 0.177 289.7)
XYZxyz(13.9638, 8.6697, 43.0485)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3CB2 #93B23C
analogous
#3C58B2 #5B3CB2 #963CB2
triadic
#5B3CB2 #B25B3C #3CB25B
tetradic
#5B3CB2 #B23C58 #93B23C #3CB296
square
#5B3CB2 #B23C58 #93B23C #3CB296
split-complementary
#5B3CB2 #B2963C #58B23C
monochromatic
#2C1D56 #442D84 #5B3CB2 #7D61CA #A38FD9

Accessibility & contrast

On white

7.68
#5B3CB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5B3CB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3CB2
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3CB2#FFFFFF#000000##FFFFFF
##5B3CB21.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#3E5972
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b3cb2;
/* rgb */ color: rgb(91, 60, 178);
/* oklch */ color: oklch(46.1% 0.177 289.7);
Tailwind
colors: {
  custom: {
    50: '#9174ca',
    500: '#5b3cb2',
    950: '#000000',
  },
}
SCSS
$custom: #5b3cb2;
$custom-light: #9174ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3cb2",
  "rgb": {
    "r": 91,
    "g": 60,
    "b": 178
  },
  "hsl": {
    "h": 255.763,
    "s": 49.58,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46094,
    "c": 0.17733,
    "h": 289.7
  },
  "luminance": 0.0867
}

Semantic roles & 50–950 ramp

primary
#5B3CB2
secondary
#B4C486
accent
#D94FB5
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5B3CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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