#5B37CF#5B37CF

#5B37CF is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 47.9% C 0.218 H 285.7°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#5B37CF
RGBrgb(91, 55, 207)
HSLhsl(254, 61%, 51%)
HSVhsv(254, 73%, 81%)
CMYKcmyk(56%, 73.4%, 0%, 18.8%)
CIE-LABlab(36.86, 53.55, -72.79)
CIE-LCHlch(36.86, 90.37, 306.34°)
OKLaboklab(47.94% 0.0587 -0.2095)
OKLCHoklch(47.94% 0.218 285.7)
XYZxyz(16.9397, 9.4605, 59.9528)
Luminance0.0946 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B37CF #ABCF37
analogous
#375FCF #5B37CF #A737CF
triadic
#5B37CF #CF5B37 #37CF5B
tetradic
#5B37CF #CF375F #ABCF37 #37CFA7
square
#5B37CF #CF375F #ABCF37 #37CFA7
split-complementary
#5B37CF #CFA737 #5FCF37
monochromatic
#2F1B71 #4427A2 #5B37CF #8368DB #AC9AE7

Accessibility & contrast

On white

7.26
#5B37CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#5B37CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B37CF
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B37CF#FFFFFF#000000##FFFFFF
##5B37CF1.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD3
Deuteranopia (green-blind)
#0052CC
Tritanopia (blue-blind)
#236180
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b37cf;
/* rgb */ color: rgb(91, 55, 207);
/* oklch */ color: oklch(47.9% 0.218 285.7);
Tailwind
colors: {
  custom: {
    50: '#9572df',
    500: '#5b37cf',
    950: '#000000',
  },
}
SCSS
$custom: #5b37cf;
$custom-light: #9572df;
$custom-dark: #000000;
JSON
{
  "hex": "#5b37cf",
  "rgb": {
    "r": 91,
    "g": 55,
    "b": 207
  },
  "hsl": {
    "h": 254.211,
    "s": 61.29,
    "l": 51.373
  },
  "oklch": {
    "l": 0.47938,
    "c": 0.21763,
    "h": 285.7
  },
  "luminance": 0.09462
}

Semantic roles & 50–950 ramp

primary
#5B37CF
secondary
#C3D28F
accent
#E443BE
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5B37CF

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

Preview Lab → · Contrast checker → · Palette generator →

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