#5B46BB#5B46BB

#5B46BB is a mid, vivid violet. Relative luminance 0.102; OKLCH L 48.4% C 0.176 H 286.0°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#5B46BB
RGBrgb(91, 70, 187)
HSLhsl(251, 46%, 50%)
HSVhsv(251, 63%, 73%)
CMYKcmyk(51.3%, 62.6%, 0%, 26.7%)
CIE-LABlab(38.18, 39.45, -58.96)
CIE-LCHlch(38.18, 70.94, 303.79°)
OKLaboklab(48.38% 0.0486 -0.169)
OKLCHoklch(48.38% 0.176 286)
XYZxyz(15.4715, 10.1915, 48.1560)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B46BB #A6BB46
analogous
#466CBB #5B46BB #9546BB
triadic
#5B46BB #BB5B46 #46BB5B
tetradic
#5B46BB #BB466C #A6BB46 #46BB95
square
#5B46BB #BB466C #A6BB46 #46BB95
split-complementary
#5B46BB #BB9546 #6CBB46
monochromatic
#2F2462 #45358F #5B46BB #8373CB #AAA0DC

Accessibility & contrast

On white

6.91
#5B46BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#5B46BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B46BB
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B46BB#FFFFFF#000000##FFFFFF
##5B46BB1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#0056B9
Tritanopia (blue-blind)
#37627A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5b46bb;
/* rgb */ color: rgb(91, 70, 187);
/* oklch */ color: oklch(48.4% 0.176 286.0);
Tailwind
colors: {
  custom: {
    50: '#917ad0',
    500: '#5b46bb',
    950: '#000000',
  },
}
SCSS
$custom: #5b46bb;
$custom-light: #917ad0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b46bb",
  "rgb": {
    "r": 91,
    "g": 70,
    "b": 187
  },
  "hsl": {
    "h": 250.769,
    "s": 46.245,
    "l": 50.392
  },
  "oklch": {
    "l": 0.48375,
    "c": 0.17582,
    "h": 286
  },
  "luminance": 0.10192
}

Semantic roles & 50–950 ramp

primary
#5B46BB
secondary
#BFC894
accent
#D652BE
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5B46BB

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

Preview Lab → · Contrast checker → · Palette generator →

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