#5B3BB0#5B3BB0

#5B3BB0 is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.8% C 0.176 H 290.3°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#5B3BB0
RGBrgb(91, 59, 176)
HSLhsl(256, 50%, 46%)
HSVhsv(256, 66%, 69%)
CMYKcmyk(48.3%, 66.5%, 0%, 31%)
CIE-LABlab(34.98, 42.52, -57.68)
CIE-LCHlch(34.98, 71.66, 306.40°)
OKLaboklab(45.78% 0.061 -0.1652)
OKLCHoklch(45.78% 0.176 290.3)
XYZxyz(13.7126, 8.4861, 41.9813)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3BB0 #90B03B
analogous
#3B55B0 #5B3BB0 #953BB0
triadic
#5B3BB0 #B05B3B #3BB05B
tetradic
#5B3BB0 #B03B55 #90B03B #3BB095
square
#5B3BB0 #B03B55 #90B03B #3BB095
split-complementary
#5B3BB0 #B0953B #55B03B
monochromatic
#2C1C54 #432C82 #5B3BB0 #7C5FC9 #A18DD9

Accessibility & contrast

On white

7.79
#5B3BB0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5B3BB0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3BB0
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3BB0#FFFFFF#000000##FFFFFF
##5B3BB01.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B4
Deuteranopia (green-blind)
#0050AE
Tritanopia (blue-blind)
#3F5870
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5b3bb0;
/* rgb */ color: rgb(91, 59, 176);
/* oklch */ color: oklch(45.8% 0.176 290.3);
Tailwind
colors: {
  custom: {
    50: '#9173c8',
    500: '#5b3bb0',
    950: '#000000',
  },
}
SCSS
$custom: #5b3bb0;
$custom-light: #9173c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3bb0",
  "rgb": {
    "r": 91,
    "g": 59,
    "b": 176
  },
  "hsl": {
    "h": 256.41,
    "s": 49.787,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45782,
    "c": 0.17612,
    "h": 290.3
  },
  "luminance": 0.08487
}

Semantic roles & 50–950 ramp

primary
#5B3BB0
secondary
#B2C383
accent
#D94EB3
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5B3BB0

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

Preview Lab → · Contrast checker → · Palette generator →

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