#5B37AD#5B37AD

#5B37AD is a dark, vivid violet. Relative luminance 0.080; OKLCH L 45.0% C 0.177 H 291.6°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#5B37AD
RGBrgb(91, 55, 173)
HSLhsl(258, 52%, 45%)
HSVhsv(258, 68%, 68%)
CMYKcmyk(47.4%, 68.2%, 0%, 32.2%)
CIE-LABlab(33.93, 43.87, -57.60)
CIE-LCHlch(33.93, 72.40, 307.29°)
OKLaboklab(44.95% 0.0655 -0.165)
OKLCHoklch(44.95% 0.178 291.6)
XYZxyz(13.2213, 7.9732, 40.3694)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B37AD #89AD37
analogous
#374EAD #5B37AD #9637AD
triadic
#5B37AD #AD5B37 #37AD5B
tetradic
#5B37AD #AD374E #89AD37 #37AD96
square
#5B37AD #AD374E #89AD37 #37AD96
split-complementary
#5B37AD #AD9637 #4EAD37
monochromatic
#2A1950 #43287F #5B37AD #7A57CA #9F86D8

Accessibility & contrast

On white

8.09
#5B37AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#5B37AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B37AD
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B37AD#FFFFFF#000000##FFFFFF
##5B37AD1.008.092.598.09
#FFFFFF8.091.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B1
Deuteranopia (green-blind)
#004DAB
Tritanopia (blue-blind)
#42546D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5b37ad;
/* rgb */ color: rgb(91, 55, 173);
/* oklch */ color: oklch(45.0% 0.177 291.6);
Tailwind
colors: {
  custom: {
    50: '#9170c6',
    500: '#5b37ad',
    950: '#000000',
  },
}
SCSS
$custom: #5b37ad;
$custom-light: #9170c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b37ad",
  "rgb": {
    "r": 91,
    "g": 55,
    "b": 173
  },
  "hsl": {
    "h": 258.305,
    "s": 51.754,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44953,
    "c": 0.1775,
    "h": 291.6
  },
  "luminance": 0.07974
}

Semantic roles & 50–950 ramp

primary
#5B37AD
secondary
#ADC27D
accent
#DB4DB0
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5B37AD

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

Preview Lab → · Contrast checker → · Palette generator →

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