#5B37C2#5B37C2

#5B37C2 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 46.8% C 0.203 H 287.7°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#5B37C2
RGBrgb(91, 55, 194)
HSLhsl(256, 56%, 49%)
HSVhsv(256, 72%, 76%)
CMYKcmyk(53.1%, 71.6%, 0%, 23.9%)
CIE-LABlab(35.70, 49.85, -67.13)
CIE-LCHlch(35.70, 83.61, 306.60°)
OKLaboklab(46.76% 0.0616 -0.1929)
OKLCHoklch(46.76% 0.203 287.7)
XYZxyz(15.4153, 8.8508, 51.9246)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B37C2 #9EC237
analogous
#3759C2 #5B37C2 #A137C2
triadic
#5B37C2 #C25B37 #37C25B
tetradic
#5B37C2 #C23759 #9EC237 #37C2A1
square
#5B37C2 #C23759 #9EC237 #37C2A1
split-complementary
#5B37C2 #C2A137 #59C237
monochromatic
#2E1C63 #452992 #5B37C2 #8063D3 #A793E0

Accessibility & contrast

On white

7.58
#5B37C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5B37C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B37C2
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B37C2#FFFFFF#000000##FFFFFF
##5B37C21.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C6
Deuteranopia (green-blind)
#0050BF
Tritanopia (blue-blind)
#325C79
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b37c2;
/* rgb */ color: rgb(91, 55, 194);
/* oklch */ color: oklch(46.8% 0.203 287.7);
Tailwind
colors: {
  custom: {
    50: '#9371d6',
    500: '#5b37c2',
    950: '#000000',
  },
}
SCSS
$custom: #5b37c2;
$custom-light: #9371d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b37c2",
  "rgb": {
    "r": 91,
    "g": 55,
    "b": 194
  },
  "hsl": {
    "h": 255.54,
    "s": 55.823,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46762,
    "c": 0.20255,
    "h": 287.7
  },
  "luminance": 0.08852
}

Semantic roles & 50–950 ramp

primary
#5B37C2
secondary
#BACB89
accent
#DF49B8
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B37C2

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

Preview Lab → · Contrast checker → · Palette generator →

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