#5B3D91#5B3D91

#5B3D91 is a dark, vivid violet. Relative luminance 0.076; OKLCH L 43.7% C 0.134 H 297.0°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#5B3D91
RGBrgb(91, 61, 145)
HSLhsl(261, 41%, 40%)
HSVhsv(261, 58%, 57%)
CMYKcmyk(37.2%, 57.9%, 0%, 43.1%)
CIE-LABlab(33.15, 32.50, -41.94)
CIE-LCHlch(33.15, 53.06, 307.77°)
OKLaboklab(43.74% 0.0606 -0.1189)
OKLCHoklch(43.74% 0.134 297)
XYZxyz(11.0927, 7.6058, 27.6662)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3D91 #73913D
analogous
#3D4991 #5B3D91 #853D91
triadic
#5B3D91 #915B3D #3D915B
tetradic
#5B3D91 #913D49 #73913D #3D9185
square
#5B3D91 #913D49 #73913D #3D9185
split-complementary
#5B3D91 #91853D #49913D
monochromatic
#25193B #402B66 #5B3D91 #7754B7 #9A7FC9

Accessibility & contrast

On white

8.33
#5B3D91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#5B3D91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3D91
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3D91#FFFFFF#000000##FFFFFF
##5B3D911.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144E94
Deuteranopia (green-blind)
#1F4D8F
Tritanopia (blue-blind)
#4E4E61
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5b3d91;
/* rgb */ color: rgb(91, 61, 145);
/* oklch */ color: oklch(43.7% 0.134 297.0);
Tailwind
colors: {
  custom: {
    50: '#8d74b2',
    500: '#5b3d91',
    950: '#000000',
  },
}
SCSS
$custom: #5b3d91;
$custom-light: #8d74b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3d91",
  "rgb": {
    "r": 91,
    "g": 61,
    "b": 145
  },
  "hsl": {
    "h": 261.429,
    "s": 40.777,
    "l": 40.392
  },
  "oklch": {
    "l": 0.43735,
    "c": 0.13352,
    "h": 297
  },
  "luminance": 0.07606
}

Semantic roles & 50–950 ramp

primary
#5B3D91
secondary
#9EB377
accent
#D157A5
background
#F8F7FB
surface
#F0EDF6
border
#CBC8D0
text
#0C0811
muted
#7D7B80

Preview Lab

Preview with #5B3D91

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

Preview Lab → · Contrast checker → · Palette generator →

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