#5B3DB2#5B3DB2

#5B3DB2 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.2% C 0.176 H 289.5°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#5B3DB2
RGBrgb(91, 61, 178)
HSLhsl(255, 49%, 47%)
HSVhsv(255, 66%, 70%)
CMYKcmyk(48.9%, 65.7%, 0%, 30.2%)
CIE-LABlab(35.55, 41.97, -57.93)
CIE-LCHlch(35.55, 71.54, 305.92°)
OKLaboklab(46.24% 0.0587 -0.166)
OKLCHoklch(46.24% 0.176 289.5)
XYZxyz(14.0167, 8.7754, 43.0661)
Luminance0.0878 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3DB2 #94B23D
analogous
#3D59B2 #5B3DB2 #963DB2
triadic
#5B3DB2 #B25B3D #3DB25B
tetradic
#5B3DB2 #B23D59 #94B23D #3DB296
square
#5B3DB2 #B23D59 #94B23D #3DB296
split-complementary
#5B3DB2 #B2963D #59B23D
monochromatic
#2C1E57 #442D84 #5B3DB2 #7D63C9 #A390D9

Accessibility & contrast

On white

7.62
#5B3DB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B3DB2
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3DB2#FFFFFF#000000##FFFFFF
##5B3DB21.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#0051B0
Tritanopia (blue-blind)
#3E5972
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b3db2;
/* rgb */ color: rgb(91, 61, 178);
/* oklch */ color: oklch(46.2% 0.176 289.5);
Tailwind
colors: {
  custom: {
    50: '#9174ca',
    500: '#5b3db2',
    950: '#000000',
  },
}
SCSS
$custom: #5b3db2;
$custom-light: #9174ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3db2",
  "rgb": {
    "r": 91,
    "g": 61,
    "b": 178
  },
  "hsl": {
    "h": 255.385,
    "s": 48.954,
    "l": 46.863
  },
  "oklch": {
    "l": 0.46244,
    "c": 0.17605,
    "h": 289.5
  },
  "luminance": 0.08776
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B3DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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