#5B41BC#5B41BC

#5B41BC is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.7% C 0.183 H 286.9°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#5B41BC
RGBrgb(91, 65, 188)
HSLhsl(253, 49%, 50%)
HSVhsv(253, 65%, 74%)
CMYKcmyk(51.6%, 65.4%, 0%, 26.3%)
CIE-LABlab(37.18, 42.65, -61.18)
CIE-LCHlch(37.18, 74.58, 304.88°)
OKLaboklab(47.67% 0.0535 -0.1755)
OKLCHoklch(47.67% 0.183 286.9)
XYZxyz(15.2791, 9.6348, 48.6218)
Luminance0.0964 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B41BC #A2BC41
analogous
#4164BC #5B41BC #9941BC
triadic
#5B41BC #BC5B41 #41BC5B
tetradic
#5B41BC #BC4164 #A2BC41 #41BC99
square
#5B41BC #BC4164 #A2BC41 #41BC99
split-complementary
#5B41BC #BC9941 #64BC41
monochromatic
#2F2261 #45318F #5B41BC #826ECD #A99BDC

Accessibility & contrast

On white

7.17
#5B41BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#5B41BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B41BC
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B41BC#FFFFFF#000000##FFFFFF
##5B41BC1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC0
Deuteranopia (green-blind)
#0054BA
Tritanopia (blue-blind)
#365F79
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b41bc;
/* rgb */ color: rgb(91, 65, 188);
/* oklch */ color: oklch(47.7% 0.183 286.9);
Tailwind
colors: {
  custom: {
    50: '#9277d1',
    500: '#5b41bc',
    950: '#000000',
  },
}
SCSS
$custom: #5b41bc;
$custom-light: #9277d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b41bc",
  "rgb": {
    "r": 91,
    "g": 65,
    "b": 188
  },
  "hsl": {
    "h": 252.683,
    "s": 48.617,
    "l": 49.608
  },
  "oklch": {
    "l": 0.4767,
    "c": 0.18349,
    "h": 286.9
  },
  "luminance": 0.09636
}

Semantic roles & 50–950 ramp

primary
#5B41BC
secondary
#BDC990
accent
#D850BB
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5B41BC

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

Preview Lab → · Contrast checker → · Palette generator →

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