#5B37C5#5B37C5

#5B37C5 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.0% C 0.206 H 287.2°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#5B37C5
RGBrgb(91, 55, 197)
HSLhsl(255, 56%, 49%)
HSVhsv(255, 72%, 77%)
CMYKcmyk(53.8%, 72.1%, 0%, 22.7%)
CIE-LABlab(35.96, 50.70, -68.45)
CIE-LCHlch(35.96, 85.18, 306.53°)
OKLaboklab(47.03% 0.061 -0.1968)
OKLCHoklch(47.03% 0.206 287.2)
XYZxyz(15.7556, 8.9869, 53.7169)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B37C5 #A1C537
analogous
#375AC5 #5B37C5 #A237C5
triadic
#5B37C5 #C55B37 #37C55B
tetradic
#5B37C5 #C5375A #A1C537 #37C5A2
square
#5B37C5 #C5375A #A1C537 #37C5A2
split-complementary
#5B37C5 #C5A237 #5AC537
monochromatic
#2F1C65 #452A95 #5B37C5 #8165D4 #A895E1

Accessibility & contrast

On white

7.51
#5B37C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5B37C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B37C5
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B37C5#FFFFFF#000000##FFFFFF
##5B37C51.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C9
Deuteranopia (green-blind)
#0051C2
Tritanopia (blue-blind)
#2F5D7B
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5b37c5;
/* rgb */ color: rgb(91, 55, 197);
/* oklch */ color: oklch(47.0% 0.206 287.2);
Tailwind
colors: {
  custom: {
    50: '#9471d8',
    500: '#5b37c5',
    950: '#000000',
  },
}
SCSS
$custom: #5b37c5;
$custom-light: #9471d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b37c5",
  "rgb": {
    "r": 91,
    "g": 55,
    "b": 197
  },
  "hsl": {
    "h": 255.211,
    "s": 56.349,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47029,
    "c": 0.20605,
    "h": 287.2
  },
  "luminance": 0.08988
}

Semantic roles & 50–950 ramp

primary
#5B37C5
secondary
#BCCD8B
accent
#E048B9
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B37C5

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

Preview Lab → · Contrast checker → · Palette generator →

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