#5B37C4#5B37C4

#5B37C4 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 46.9% C 0.205 H 287.4°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#5B37C4
RGBrgb(91, 55, 196)
HSLhsl(255, 56%, 49%)
HSVhsv(255, 72%, 77%)
CMYKcmyk(53.6%, 71.9%, 0%, 23.1%)
CIE-LABlab(35.87, 50.42, -68.01)
CIE-LCHlch(35.87, 84.66, 306.55°)
OKLaboklab(46.94% 0.0612 -0.1955)
OKLCHoklch(46.94% 0.205 287.4)
XYZxyz(15.6414, 8.9412, 53.1155)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B37C4 #A0C437
analogous
#375AC4 #5B37C4 #A237C4
triadic
#5B37C4 #C45B37 #37C45B
tetradic
#5B37C4 #C4375A #A0C437 #37C4A2
square
#5B37C4 #C4375A #A0C437 #37C4A2
split-complementary
#5B37C4 #C4A237 #5AC437
monochromatic
#2F1C64 #452A94 #5B37C4 #8165D4 #A894E1

Accessibility & contrast

On white

7.53
#5B37C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5B37C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B37C4
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B37C4#FFFFFF#000000##FFFFFF
##5B37C41.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C8
Deuteranopia (green-blind)
#0050C1
Tritanopia (blue-blind)
#305D7A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b37c4;
/* rgb */ color: rgb(91, 55, 196);
/* oklch */ color: oklch(46.9% 0.205 287.4);
Tailwind
colors: {
  custom: {
    50: '#9471d7',
    500: '#5b37c4',
    950: '#000000',
  },
}
SCSS
$custom: #5b37c4;
$custom-light: #9471d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b37c4",
  "rgb": {
    "r": 91,
    "g": 55,
    "b": 196
  },
  "hsl": {
    "h": 255.319,
    "s": 56.175,
    "l": 49.216
  },
  "oklch": {
    "l": 0.4694,
    "c": 0.20488,
    "h": 287.4
  },
  "luminance": 0.08942
}

Semantic roles & 50–950 ramp

primary
#5B37C4
secondary
#BBCC8B
accent
#DF48B9
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B37C4

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

Preview Lab → · Contrast checker → · Palette generator →

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