#5B3CB7#5B3CB7

#5B3CB7 is a mid, vivid violet. Relative luminance 0.089; OKLCH L 46.5% C 0.184 H 288.8°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#5B3CB7
RGBrgb(91, 60, 183)
HSLhsl(255, 51%, 48%)
HSVhsv(255, 67%, 72%)
CMYKcmyk(50.3%, 67.2%, 0%, 28.2%)
CIE-LABlab(35.74, 43.99, -60.58)
CIE-LCHlch(35.74, 74.87, 305.99°)
OKLaboklab(46.51% 0.059 -0.1737)
OKLCHoklch(46.51% 0.184 288.8)
XYZxyz(14.4750, 8.8741, 45.7407)
Luminance0.0887 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3CB7 #98B73C
analogous
#3C5AB7 #5B3CB7 #983CB7
triadic
#5B3CB7 #B75B3C #3CB75B
tetradic
#5B3CB7 #B73C5A #98B73C #3CB798
square
#5B3CB7 #B73C5A #98B73C #3CB798
split-complementary
#5B3CB7 #B7983C #5AB73C
monochromatic
#2D1E5B #442D89 #5B3CB7 #7E64CC #A592DB

Accessibility & contrast

On white

7.57
#5B3CB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5B3CB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3CB7
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3CB7#FFFFFF#000000##FFFFFF
##5B3CB71.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#0051B5
Tritanopia (blue-blind)
#3B5B74
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b3cb7;
/* rgb */ color: rgb(91, 60, 183);
/* oklch */ color: oklch(46.5% 0.184 288.8);
Tailwind
colors: {
  custom: {
    50: '#9274ce',
    500: '#5b3cb7',
    950: '#000000',
  },
}
SCSS
$custom: #5b3cb7;
$custom-light: #9274ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3cb7",
  "rgb": {
    "r": 91,
    "g": 60,
    "b": 183
  },
  "hsl": {
    "h": 255.122,
    "s": 50.617,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46508,
    "c": 0.18351,
    "h": 288.8
  },
  "luminance": 0.08875
}

Semantic roles & 50–950 ramp

primary
#5B3CB7
secondary
#B7C688
accent
#DA4EB7
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5B3CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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