#5B3BB3#5B3BB3

#5B3BB3 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.0% C 0.180 H 289.7°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#5B3BB3
RGBrgb(91, 59, 179)
HSLhsl(256, 50%, 47%)
HSVhsv(256, 67%, 70%)
CMYKcmyk(49.2%, 67%, 0%, 29.8%)
CIE-LABlab(35.21, 43.38, -59.07)
CIE-LCHlch(35.21, 73.29, 306.30°)
OKLaboklab(46.03% 0.0606 -0.1693)
OKLCHoklch(46.03% 0.18 289.7)
XYZxyz(14.0127, 8.6062, 43.5619)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3BB3 #93B33B
analogous
#3B57B3 #5B3BB3 #973BB3
triadic
#5B3BB3 #B35B3B #3BB35B
tetradic
#5B3BB3 #B33B57 #93B33B #3BB397
square
#5B3BB3 #B33B57 #93B33B #3BB397
split-complementary
#5B3BB3 #B3973B #57B33B
monochromatic
#2C1D57 #442C85 #5B3BB3 #7D60CB #A38EDA

Accessibility & contrast

On white

7.72
#5B3BB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5B3BB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3BB3
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3BB3#FFFFFF#000000##FFFFFF
##5B3BB31.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B7
Deuteranopia (green-blind)
#0050B1
Tritanopia (blue-blind)
#3D5972
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b3bb3;
/* rgb */ color: rgb(91, 59, 179);
/* oklch */ color: oklch(46.0% 0.180 289.7);
Tailwind
colors: {
  custom: {
    50: '#9173cb',
    500: '#5b3bb3',
    950: '#000000',
  },
}
SCSS
$custom: #5b3bb3;
$custom-light: #9173cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3bb3",
  "rgb": {
    "r": 91,
    "g": 59,
    "b": 179
  },
  "hsl": {
    "h": 256,
    "s": 50.42,
    "l": 46.667
  },
  "oklch": {
    "l": 0.46029,
    "c": 0.17982,
    "h": 289.7
  },
  "luminance": 0.08607
}

Semantic roles & 50–950 ramp

primary
#5B3BB3
secondary
#B4C585
accent
#DA4EB5
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5B3BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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