#5B3BB2#5B3BB2

#5B3BB2 is a mid, vivid violet. Relative luminance 0.086; OKLCH L 45.9% C 0.179 H 289.9°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#5B3BB2
RGBrgb(91, 59, 178)
HSLhsl(256, 50%, 46%)
HSVhsv(256, 67%, 70%)
CMYKcmyk(48.9%, 66.9%, 0%, 30.2%)
CIE-LABlab(35.13, 43.10, -58.61)
CIE-LCHlch(35.13, 72.75, 306.33°)
OKLaboklab(45.95% 0.0607 -0.1679)
OKLCHoklch(45.95% 0.179 289.9)
XYZxyz(13.9119, 8.5659, 43.0312)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3BB2 #92B23B
analogous
#3B57B2 #5B3BB2 #973BB2
triadic
#5B3BB2 #B25B3B #3BB25B
tetradic
#5B3BB2 #B23B57 #92B23B #3BB297
square
#5B3BB2 #B23B57 #92B23B #3BB297
split-complementary
#5B3BB2 #B2973B #57B23B
monochromatic
#2C1D56 #442C84 #5B3BB2 #7D60CA #A28EDA

Accessibility & contrast

On white

7.74
#5B3BB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5B3BB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3BB2
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3BB2#FFFFFF#000000##FFFFFF
##5B3BB21.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B6
Deuteranopia (green-blind)
#0050B0
Tritanopia (blue-blind)
#3E5871
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b3bb2;
/* rgb */ color: rgb(91, 59, 178);
/* oklch */ color: oklch(45.9% 0.179 289.9);
Tailwind
colors: {
  custom: {
    50: '#9173ca',
    500: '#5b3bb2',
    950: '#000000',
  },
}
SCSS
$custom: #5b3bb2;
$custom-light: #9173ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3bb2",
  "rgb": {
    "r": 91,
    "g": 59,
    "b": 178
  },
  "hsl": {
    "h": 256.134,
    "s": 50.211,
    "l": 46.471
  },
  "oklch": {
    "l": 0.45946,
    "c": 0.17859,
    "h": 289.9
  },
  "luminance": 0.08566
}

Semantic roles & 50–950 ramp

primary
#5B3BB2
secondary
#B3C485
accent
#DA4EB4
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5B3BB2

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

Preview Lab → · Contrast checker → · Palette generator →

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