#5B37AB#5B37AB

#5B37AB is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.8% C 0.175 H 292.1°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#5B37AB
RGBrgb(91, 55, 171)
HSLhsl(259, 51%, 44%)
HSVhsv(259, 68%, 67%)
CMYKcmyk(46.8%, 67.8%, 0%, 32.9%)
CIE-LABlab(33.77, 43.30, -56.67)
CIE-LCHlch(33.77, 71.31, 307.38°)
OKLaboklab(44.79% 0.0658 -0.1622)
OKLCHoklch(44.79% 0.175 292.1)
XYZxyz(13.0292, 7.8964, 39.3578)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B37AB #87AB37
analogous
#374DAB #5B37AB #9537AB
triadic
#5B37AB #AB5B37 #37AB5B
tetradic
#5B37AB #AB374D #87AB37 #37AB95
square
#5B37AB #AB374D #87AB37 #37AB95
split-complementary
#5B37AB #AB9537 #4DAB37
monochromatic
#2A194E #42287D #5B37AB #7A56C9 #9E85D8

Accessibility & contrast

On white

8.14
#5B37AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5B37AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B37AB
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B37AB#FFFFFF#000000##FFFFFF
##5B37AB1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#43536C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5b37ab;
/* rgb */ color: rgb(91, 55, 171);
/* oklch */ color: oklch(44.8% 0.175 292.1);
Tailwind
colors: {
  custom: {
    50: '#9070c5',
    500: '#5b37ab',
    950: '#000000',
  },
}
SCSS
$custom: #5b37ab;
$custom-light: #9070c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b37ab",
  "rgb": {
    "r": 91,
    "g": 55,
    "b": 171
  },
  "hsl": {
    "h": 258.621,
    "s": 51.327,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44787,
    "c": 0.17507,
    "h": 292.1
  },
  "luminance": 0.07897
}

Semantic roles & 50–950 ramp

primary
#5B37AB
secondary
#ACC17C
accent
#DB4DAF
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5B37AB

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

Preview Lab → · Contrast checker → · Palette generator →

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