#5B41B2#5B41B2

#5B41B2 is a mid, vivid violet. Relative luminance 0.092; OKLCH L 46.9% C 0.171 H 288.6°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#5B41B2
RGBrgb(91, 65, 178)
HSLhsl(254, 47%, 48%)
HSVhsv(254, 63%, 70%)
CMYKcmyk(48.9%, 63.5%, 0%, 30.2%)
CIE-LABlab(36.40, 39.68, -56.55)
CIE-LCHlch(36.40, 69.08, 305.06°)
OKLaboklab(46.86% 0.0545 -0.1619)
OKLCHoklch(46.86% 0.171 288.6)
XYZxyz(14.2382, 9.2185, 43.1400)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B41B2 #98B241
analogous
#4160B2 #5B41B2 #9341B2
triadic
#5B41B2 #B25B41 #41B25B
tetradic
#5B41B2 #B24160 #98B241 #41B293
square
#5B41B2 #B24160 #98B241 #41B293
split-complementary
#5B41B2 #B29341 #60B241
monochromatic
#2D2058 #443185 #5B41B2 #7E68C8 #A595D8

Accessibility & contrast

On white

7.38
#5B41B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5B41B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B41B2
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B41B2#FFFFFF#000000##FFFFFF
##5B41B21.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#3E5C73
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b41b2;
/* rgb */ color: rgb(91, 65, 178);
/* oklch */ color: oklch(46.9% 0.171 288.6);
Tailwind
colors: {
  custom: {
    50: '#9177ca',
    500: '#5b41b2',
    950: '#000000',
  },
}
SCSS
$custom: #5b41b2;
$custom-light: #9177ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5b41b2",
  "rgb": {
    "r": 91,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 253.805,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46863,
    "c": 0.17083,
    "h": 288.6
  },
  "luminance": 0.09219
}

Semantic roles & 50–950 ramp

primary
#5B41B2
secondary
#B7C48B
accent
#D652B8
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5B41B2

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

Preview Lab → · Contrast checker → · Palette generator →

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