#5B3BB8#5B3BB8

#5B3BB8 is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.4% C 0.186 H 288.8°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#5B3BB8
RGBrgb(91, 59, 184)
HSLhsl(255, 51%, 48%)
HSVhsv(255, 68%, 72%)
CMYKcmyk(50.5%, 67.9%, 0%, 27.8%)
CIE-LABlab(35.62, 44.83, -61.37)
CIE-LCHlch(35.62, 76.00, 306.15°)
OKLaboklab(46.45% 0.0599 -0.1761)
OKLCHoklch(46.45% 0.186 288.8)
XYZxyz(14.5276, 8.8121, 46.2735)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3BB8 #98B83B
analogous
#3B5AB8 #5B3BB8 #993BB8
triadic
#5B3BB8 #B85B3B #3BB85B
tetradic
#5B3BB8 #B83B5A #98B83B #3BB899
square
#5B3BB8 #B83B5A #98B83B #3BB899
split-complementary
#5B3BB8 #B8993B #5AB83B
monochromatic
#2D1D5B #442C8A #5B3BB8 #7E63CD #A592DC

Accessibility & contrast

On white

7.60
#5B3BB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B3BB8
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3BB8#FFFFFF#000000##FFFFFF
##5B3BB81.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5b3bb8;
/* rgb */ color: rgb(91, 59, 184);
/* oklch */ color: oklch(46.4% 0.186 288.8);
Tailwind
colors: {
  custom: {
    50: '#9273ce',
    500: '#5b3bb8',
    950: '#000000',
  },
}
SCSS
$custom: #5b3bb8;
$custom-light: #9273ce;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3bb8",
  "rgb": {
    "r": 91,
    "g": 59,
    "b": 184
  },
  "hsl": {
    "h": 255.36,
    "s": 51.44,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46446,
    "c": 0.18596,
    "h": 288.8
  },
  "luminance": 0.08813
}

Semantic roles & 50–950 ramp

primary
#5B3BB8
secondary
#B7C788
accent
#DB4DB7
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5B3BB8

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

Preview Lab → · Contrast checker → · Palette generator →

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