#5B41BB#5B41BB

#5B41BB is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.6% C 0.182 H 287.1°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#5B41BB
RGBrgb(91, 65, 187)
HSLhsl(253, 48%, 49%)
HSVhsv(253, 65%, 73%)
CMYKcmyk(51.3%, 65.2%, 0%, 26.7%)
CIE-LABlab(37.10, 42.35, -60.72)
CIE-LCHlch(37.10, 74.03, 304.89°)
OKLaboklab(47.59% 0.0536 -0.1742)
OKLCHoklch(47.59% 0.182 287.1)
XYZxyz(15.1717, 9.5919, 48.0561)
Luminance0.0959 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B41BB #A1BB41
analogous
#4164BB #5B41BB #9841BB
triadic
#5B41BB #BB5B41 #41BB5B
tetradic
#5B41BB #BB4164 #A1BB41 #41BB98
square
#5B41BB #BB4164 #A1BB41 #41BB98
split-complementary
#5B41BB #BB9841 #64BB41
monochromatic
#2F2160 #45318E #5B41BB #816DCC #A89ADC

Accessibility & contrast

On white

7.20
#5B41BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5B41BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B41BB
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B41BB#FFFFFF#000000##FFFFFF
##5B41BB1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABF
Deuteranopia (green-blind)
#0054B9
Tritanopia (blue-blind)
#375F78
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b41bb;
/* rgb */ color: rgb(91, 65, 187);
/* oklch */ color: oklch(47.6% 0.182 287.1);
Tailwind
colors: {
  custom: {
    50: '#9277d0',
    500: '#5b41bb',
    950: '#000000',
  },
}
SCSS
$custom: #5b41bb;
$custom-light: #9277d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b41bb",
  "rgb": {
    "r": 91,
    "g": 65,
    "b": 187
  },
  "hsl": {
    "h": 252.787,
    "s": 48.413,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47588,
    "c": 0.18223,
    "h": 287.1
  },
  "luminance": 0.09593
}

Semantic roles & 50–950 ramp

primary
#5B41BB
secondary
#BCC890
accent
#D850BB
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5B41BB

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

Preview Lab → · Contrast checker → · Palette generator →

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