#5B37CE#5B37CE

#5B37CE is a mid, highly saturated violet. Relative luminance 0.094; OKLCH L 47.8% C 0.216 H 285.8°. Best body text is #FFFFFF at 7.29:1 contrast (WCAG AA passes).

Color values

HEX#5B37CE
RGBrgb(91, 55, 206)
HSLhsl(254, 61%, 51%)
HSVhsv(254, 73%, 81%)
CMYKcmyk(55.8%, 73.3%, 0%, 19.2%)
CIE-LABlab(36.77, 53.27, -72.36)
CIE-LCHlch(36.77, 89.85, 306.36°)
OKLaboklab(47.85% 0.059 -0.2083)
OKLCHoklch(47.85% 0.216 285.8)
XYZxyz(16.8178, 9.4118, 59.3110)
Luminance0.0941 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B37CE #AACE37
analogous
#375ECE #5B37CE #A737CE
triadic
#5B37CE #CE5B37 #37CE5B
tetradic
#5B37CE #CE375E #AACE37 #37CEA7
square
#5B37CE #CE375E #AACE37 #37CEA7
split-complementary
#5B37CE #CEA737 #5ECE37
monochromatic
#2F1B6F #4427A0 #5B37CE #8368DA #AC99E6

Accessibility & contrast

On white

7.29
#5B37CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#5B37CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B37CE
7.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B37CE#FFFFFF#000000##FFFFFF
##5B37CE1.007.292.887.29
#FFFFFF7.291.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD2
Deuteranopia (green-blind)
#0052CB
Tritanopia (blue-blind)
#256180
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b37ce;
/* rgb */ color: rgb(91, 55, 206);
/* oklch */ color: oklch(47.8% 0.216 285.8);
Tailwind
colors: {
  custom: {
    50: '#9572de',
    500: '#5b37ce',
    950: '#000000',
  },
}
SCSS
$custom: #5b37ce;
$custom-light: #9572de;
$custom-dark: #000000;
JSON
{
  "hex": "#5b37ce",
  "rgb": {
    "r": 91,
    "g": 55,
    "b": 206
  },
  "hsl": {
    "h": 254.305,
    "s": 60.643,
    "l": 51.176
  },
  "oklch": {
    "l": 0.47846,
    "c": 0.21648,
    "h": 285.8
  },
  "luminance": 0.09413
}

Semantic roles & 50–950 ramp

primary
#5B37CE
secondary
#C2D28F
accent
#E444BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5B37CE

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

Preview Lab → · Contrast checker → · Palette generator →

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