#5B3DB3#5B3DB3

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

Color values

HEX#5B3DB3
RGBrgb(91, 61, 179)
HSLhsl(255, 49%, 47%)
HSVhsv(255, 66%, 70%)
CMYKcmyk(49.2%, 65.9%, 0%, 29.8%)
CIE-LABlab(35.63, 42.26, -58.40)
CIE-LCHlch(35.63, 72.09, 305.89°)
OKLaboklab(46.33% 0.0586 -0.1673)
OKLCHoklch(46.33% 0.177 289.3)
XYZxyz(14.1175, 8.8157, 43.5968)
Luminance0.0882 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3DB3 #95B33D
analogous
#3D5AB3 #5B3DB3 #963DB3
triadic
#5B3DB3 #B35B3D #3DB35B
tetradic
#5B3DB3 #B33D5A #95B33D #3DB396
square
#5B3DB3 #B33D5A #95B33D #3DB396
split-complementary
#5B3DB3 #B3963D #5AB33D
monochromatic
#2D1E58 #442D85 #5B3DB3 #7D63CA #A391D9

Accessibility & contrast

On white

7.60
#5B3DB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B3DB3
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3DB3#FFFFFF#000000##FFFFFF
##5B3DB31.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B7
Deuteranopia (green-blind)
#0051B1
Tritanopia (blue-blind)
#3D5A72
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b3db3;
/* rgb */ color: rgb(91, 61, 179);
/* oklch */ color: oklch(46.3% 0.177 289.3);
Tailwind
colors: {
  custom: {
    50: '#9174cb',
    500: '#5b3db3',
    950: '#000000',
  },
}
SCSS
$custom: #5b3db3;
$custom-light: #9174cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3db3",
  "rgb": {
    "r": 91,
    "g": 61,
    "b": 179
  },
  "hsl": {
    "h": 255.254,
    "s": 49.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46326,
    "c": 0.17729,
    "h": 289.3
  },
  "luminance": 0.08816
}

Semantic roles & 50–950 ramp

primary
#5B3DB3
secondary
#B5C587
accent
#D94FB6
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5B3DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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