#5B37CC#5B37CC

#5B37CC is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.7% C 0.214 H 286.1°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#5B37CC
RGBrgb(91, 55, 204)
HSLhsl(254, 59%, 51%)
HSVhsv(254, 73%, 80%)
CMYKcmyk(55.4%, 73%, 0%, 20%)
CIE-LABlab(36.58, 52.70, -71.50)
CIE-LCHlch(36.58, 88.82, 306.39°)
OKLaboklab(47.66% 0.0594 -0.2058)
OKLCHoklch(47.66% 0.214 286.1)
XYZxyz(16.5764, 9.3152, 58.0396)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B37CC #A8CC37
analogous
#375DCC #5B37CC #A637CC
triadic
#5B37CC #CC5B37 #37CC5B
tetradic
#5B37CC #CC375D #A8CC37 #37CCA6
square
#5B37CC #CC375D #A8CC37 #37CCA6
split-complementary
#5B37CC #CCA637 #5DCC37
monochromatic
#2F1C6D #45289E #5B37CC #8368D8 #AB99E5

Accessibility & contrast

On white

7.33
#5B37CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5B37CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B37CC
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B37CC#FFFFFF#000000##FFFFFF
##5B37CC1.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD0
Deuteranopia (green-blind)
#0052C9
Tritanopia (blue-blind)
#27607E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b37cc;
/* rgb */ color: rgb(91, 55, 204);
/* oklch */ color: oklch(47.7% 0.214 286.1);
Tailwind
colors: {
  custom: {
    50: '#9572dd',
    500: '#5b37cc',
    950: '#000000',
  },
}
SCSS
$custom: #5b37cc;
$custom-light: #9572dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b37cc",
  "rgb": {
    "r": 91,
    "g": 55,
    "b": 204
  },
  "hsl": {
    "h": 254.497,
    "s": 59.363,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47663,
    "c": 0.21417,
    "h": 286.1
  },
  "luminance": 0.09316
}

Semantic roles & 50–950 ramp

primary
#5B37CC
secondary
#C0D08E
accent
#E345BD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5B37CC

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

Preview Lab → · Contrast checker → · Palette generator →

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