#5B3BB5#5B3BB5

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

Color values

HEX#5B3BB5
RGBrgb(91, 59, 181)
HSLhsl(256, 51%, 47%)
HSVhsv(256, 67%, 71%)
CMYKcmyk(49.7%, 67.4%, 0%, 29%)
CIE-LABlab(35.38, 43.96, -59.99)
CIE-LCHlch(35.38, 74.38, 306.24°)
OKLaboklab(46.2% 0.0603 -0.172)
OKLCHoklch(46.2% 0.182 289.3)
XYZxyz(14.2164, 8.6877, 44.6349)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3BB5 #95B53B
analogous
#3B58B5 #5B3BB5 #983BB5
triadic
#5B3BB5 #B55B3B #3BB55B
tetradic
#5B3BB5 #B53B58 #95B53B #3BB598
square
#5B3BB5 #B53B58 #95B53B #3BB598
split-complementary
#5B3BB5 #B5983B #58B53B
monochromatic
#2D1D59 #442C87 #5B3BB5 #7D62CC #A390DB

Accessibility & contrast

On white

7.67
#5B3BB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5B3BB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3BB5
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3BB5#FFFFFF#000000##FFFFFF
##5B3BB51.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#0050B3
Tritanopia (blue-blind)
#3C5973
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b3bb5;
/* rgb */ color: rgb(91, 59, 181);
/* oklch */ color: oklch(46.2% 0.182 289.3);
Tailwind
colors: {
  custom: {
    50: '#9173cc',
    500: '#5b3bb5',
    950: '#000000',
  },
}
SCSS
$custom: #5b3bb5;
$custom-light: #9173cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3bb5",
  "rgb": {
    "r": 91,
    "g": 59,
    "b": 181
  },
  "hsl": {
    "h": 255.738,
    "s": 50.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.46195,
    "c": 0.18229,
    "h": 289.3
  },
  "luminance": 0.08688
}

Semantic roles & 50–950 ramp

primary
#5B3BB5
secondary
#B5C686
accent
#DA4DB5
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5B3BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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