#5B37CA#5B37CA

#5B37CA is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.5% C 0.212 H 286.4°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#5B37CA
RGBrgb(91, 55, 202)
HSLhsl(255, 58%, 50%)
HSVhsv(255, 73%, 79%)
CMYKcmyk(55%, 72.8%, 0%, 20.8%)
CIE-LABlab(36.40, 52.13, -70.63)
CIE-LCHlch(36.40, 87.79, 306.43°)
OKLaboklab(47.48% 0.0599 -0.2032)
OKLCHoklch(47.48% 0.212 286.4)
XYZxyz(16.3380, 9.2199, 56.7844)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B37CA #A6CA37
analogous
#375CCA #5B37CA #A537CA
triadic
#5B37CA #CA5B37 #37CA5B
tetradic
#5B37CA #CA375C #A6CA37 #37CAA5
square
#5B37CA #CA375C #A6CA37 #37CAA5
split-complementary
#5B37CA #CAA537 #5CCA37
monochromatic
#2F1C6A #45299B #5B37CA #8367D7 #AA98E4

Accessibility & contrast

On white

7.38
#5B37CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5B37CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B37CA
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B37CA#FFFFFF#000000##FFFFFF
##5B37CA1.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CE
Deuteranopia (green-blind)
#0051C7
Tritanopia (blue-blind)
#2A5F7D
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b37ca;
/* rgb */ color: rgb(91, 55, 202);
/* oklch */ color: oklch(47.5% 0.212 286.4);
Tailwind
colors: {
  custom: {
    50: '#9571db',
    500: '#5b37ca',
    950: '#000000',
  },
}
SCSS
$custom: #5b37ca;
$custom-light: #9571db;
$custom-dark: #000000;
JSON
{
  "hex": "#5b37ca",
  "rgb": {
    "r": 91,
    "g": 55,
    "b": 202
  },
  "hsl": {
    "h": 254.694,
    "s": 58.103,
    "l": 50.392
  },
  "oklch": {
    "l": 0.47481,
    "c": 0.21187,
    "h": 286.4
  },
  "luminance": 0.09221
}

Semantic roles & 50–950 ramp

primary
#5B37CA
secondary
#BFCF8E
accent
#E146BB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B37CA

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

Preview Lab → · Contrast checker → · Palette generator →

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