#5B37AC#5B37AC

#5B37AC is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.9% C 0.176 H 291.9°. Best body text is #FFFFFF at 8.12:1 contrast (WCAG AA passes).

Color values

HEX#5B37AC
RGBrgb(91, 55, 172)
HSLhsl(258, 52%, 45%)
HSVhsv(258, 68%, 67%)
CMYKcmyk(47.1%, 68%, 0%, 32.5%)
CIE-LABlab(33.85, 43.58, -57.13)
CIE-LCHlch(33.85, 71.86, 307.34°)
OKLaboklab(44.87% 0.0656 -0.1636)
OKLCHoklch(44.87% 0.176 291.9)
XYZxyz(13.1249, 7.9346, 39.8617)
Luminance0.0794 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B37AC #88AC37
analogous
#374DAC #5B37AC #9637AC
triadic
#5B37AC #AC5B37 #37AC5B
tetradic
#5B37AC #AC374D #88AC37 #37AC96
square
#5B37AC #AC374D #88AC37 #37AC96
split-complementary
#5B37AC #AC9637 #4DAC37
monochromatic
#2A194F #42287E #5B37AC #7A57C9 #9F85D8

Accessibility & contrast

On white

8.12
#5B37AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B37AC
8.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B37AC#FFFFFF#000000##FFFFFF
##5B37AC1.008.122.598.12
#FFFFFF8.121.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B0
Deuteranopia (green-blind)
#004DAA
Tritanopia (blue-blind)
#42546D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5b37ac;
/* rgb */ color: rgb(91, 55, 172);
/* oklch */ color: oklch(44.9% 0.176 291.9);
Tailwind
colors: {
  custom: {
    50: '#9070c6',
    500: '#5b37ac',
    950: '#000000',
  },
}
SCSS
$custom: #5b37ac;
$custom-light: #9070c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b37ac",
  "rgb": {
    "r": 91,
    "g": 55,
    "b": 172
  },
  "hsl": {
    "h": 258.462,
    "s": 51.542,
    "l": 44.51
  },
  "oklch": {
    "l": 0.4487,
    "c": 0.17628,
    "h": 291.9
  },
  "luminance": 0.07935
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B37AC

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

Preview Lab → · Contrast checker → · Palette generator →

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