#5B41B7#5B41B7

#5B41B7 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.3% C 0.177 H 287.8°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#5B41B7
RGBrgb(91, 65, 183)
HSLhsl(253, 48%, 49%)
HSVhsv(253, 64%, 72%)
CMYKcmyk(50.3%, 64.5%, 0%, 28.2%)
CIE-LABlab(36.79, 41.16, -58.88)
CIE-LCHlch(36.79, 71.84, 304.96°)
OKLaboklab(47.26% 0.054 -0.1687)
OKLCHoklch(47.26% 0.177 287.8)
XYZxyz(14.7494, 9.4230, 45.8322)
Luminance0.0942 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B41B7 #9DB741
analogous
#4162B7 #5B41B7 #9641B7
triadic
#5B41B7 #B75B41 #41B75B
tetradic
#5B41B7 #B74162 #9DB741 #41B796
square
#5B41B7 #B74162 #9DB741 #41B796
split-complementary
#5B41B7 #B79641 #62B741
monochromatic
#2E215D #45318A #5B41B7 #806BCA #A798DA

Accessibility & contrast

On white

7.28
#5B41B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5B41B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B41B7
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B41B7#FFFFFF#000000##FFFFFF
##5B41B71.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059BB
Deuteranopia (green-blind)
#0053B5
Tritanopia (blue-blind)
#3A5E76
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b41b7;
/* rgb */ color: rgb(91, 65, 183);
/* oklch */ color: oklch(47.3% 0.177 287.8);
Tailwind
colors: {
  custom: {
    50: '#9177cd',
    500: '#5b41b7',
    950: '#000000',
  },
}
SCSS
$custom: #5b41b7;
$custom-light: #9177cd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b41b7",
  "rgb": {
    "r": 91,
    "g": 65,
    "b": 183
  },
  "hsl": {
    "h": 253.22,
    "s": 47.581,
    "l": 48.627
  },
  "oklch": {
    "l": 0.47262,
    "c": 0.17719,
    "h": 287.8
  },
  "luminance": 0.09424
}

Semantic roles & 50–950 ramp

primary
#5B41B7
secondary
#BAC68E
accent
#D751BA
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5B41B7

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

Preview Lab → · Contrast checker → · Palette generator →

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