#5B3DB1#5B3DB1

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

Color values

HEX#5B3DB1
RGBrgb(91, 61, 177)
HSLhsl(256, 49%, 47%)
HSVhsv(256, 66%, 69%)
CMYKcmyk(48.6%, 65.5%, 0%, 30.6%)
CIE-LABlab(35.47, 41.68, -57.47)
CIE-LCHlch(35.47, 70.99, 305.95°)
OKLaboklab(46.16% 0.0588 -0.1646)
OKLCHoklch(46.16% 0.175 289.7)
XYZxyz(13.9167, 8.7354, 42.5393)
Luminance0.0874 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3DB1 #93B13D
analogous
#3D59B1 #5B3DB1 #953DB1
triadic
#5B3DB1 #B15B3D #3DB15B
tetradic
#5B3DB1 #B13D59 #93B13D #3DB195
square
#5B3DB1 #B13D59 #93B13D #3DB195
split-complementary
#5B3DB1 #B1953D #59B13D
monochromatic
#2C1E56 #442D83 #5B3DB1 #7D62C9 #A390D9

Accessibility & contrast

On white

7.64
#5B3DB1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5B3DB1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3DB1
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3DB1#FFFFFF#000000##FFFFFF
##5B3DB11.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B5
Deuteranopia (green-blind)
#0051AF
Tritanopia (blue-blind)
#3F5971
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b3db1;
/* rgb */ color: rgb(91, 61, 177);
/* oklch */ color: oklch(46.2% 0.175 289.7);
Tailwind
colors: {
  custom: {
    50: '#9174c9',
    500: '#5b3db1',
    950: '#000000',
  },
}
SCSS
$custom: #5b3db1;
$custom-light: #9174c9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3db1",
  "rgb": {
    "r": 91,
    "g": 61,
    "b": 177
  },
  "hsl": {
    "h": 255.517,
    "s": 48.739,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46163,
    "c": 0.1748,
    "h": 289.7
  },
  "luminance": 0.08736
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B3DB1

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

Preview Lab → · Contrast checker → · Palette generator →

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