#5B3CB5#5B3CB5

#5B3CB5 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.3% C 0.181 H 289.1°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#5B3CB5
RGBrgb(91, 60, 181)
HSLhsl(255, 50%, 47%)
HSVhsv(255, 67%, 71%)
CMYKcmyk(49.7%, 66.9%, 0%, 29%)
CIE-LABlab(35.58, 43.41, -59.66)
CIE-LCHlch(35.58, 73.78, 306.04°)
OKLaboklab(46.34% 0.0593 -0.171)
OKLCHoklch(46.34% 0.181 289.1)
XYZxyz(14.2683, 8.7915, 44.6522)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3CB5 #96B53C
analogous
#3C5AB5 #5B3CB5 #983CB5
triadic
#5B3CB5 #B55B3C #3CB55B
tetradic
#5B3CB5 #B53C5A #96B53C #3CB598
square
#5B3CB5 #B53C5A #96B53C #3CB598
split-complementary
#5B3CB5 #B5983C #5AB53C
monochromatic
#2D1E59 #442D87 #5B3CB5 #7E63CB #A491DB

Accessibility & contrast

On white

7.61
#5B3CB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5B3CB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3CB5
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3CB5#FFFFFF#000000##FFFFFF
##5B3CB51.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#0051B3
Tritanopia (blue-blind)
#3C5A73
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b3cb5;
/* rgb */ color: rgb(91, 60, 181);
/* oklch */ color: oklch(46.3% 0.181 289.1);
Tailwind
colors: {
  custom: {
    50: '#9174cc',
    500: '#5b3cb5',
    950: '#000000',
  },
}
SCSS
$custom: #5b3cb5;
$custom-light: #9174cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3cb5",
  "rgb": {
    "r": 91,
    "g": 60,
    "b": 181
  },
  "hsl": {
    "h": 255.372,
    "s": 50.207,
    "l": 47.255
  },
  "oklch": {
    "l": 0.46341,
    "c": 0.18104,
    "h": 289.1
  },
  "luminance": 0.08792
}

Semantic roles & 50–950 ramp

primary
#5B3CB5
secondary
#B6C687
accent
#DA4EB6
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5B3CB5

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

Preview Lab → · Contrast checker → · Palette generator →

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