#5B37C8#5B37C8

#5B37C8 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.3% C 0.210 H 286.7°. Best body text is #FFFFFF at 7.43:1 contrast (WCAG AA passes).

Color values

HEX#5B37C8
RGBrgb(91, 55, 200)
HSLhsl(255, 57%, 50%)
HSVhsv(255, 73%, 78%)
CMYKcmyk(54.5%, 72.5%, 0%, 21.6%)
CIE-LABlab(36.23, 51.56, -69.76)
CIE-LCHlch(36.23, 86.75, 306.47°)
OKLaboklab(47.3% 0.0603 -0.2007)
OKLCHoklch(47.3% 0.21 286.7)
XYZxyz(16.1028, 9.1258, 55.5453)
Luminance0.0913 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B37C8 #A4C837
analogous
#375BC8 #5B37C8 #A437C8
triadic
#5B37C8 #C85B37 #37C85B
tetradic
#5B37C8 #C8375B #A4C837 #37C8A4
square
#5B37C8 #C8375B #A4C837 #37C8A4
split-complementary
#5B37C8 #C8A437 #5BC837
monochromatic
#2F1D68 #452A98 #5B37C8 #8267D5 #AA97E2

Accessibility & contrast

On white

7.43
#5B37C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5B37C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B37C8
7.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B37C8#FFFFFF#000000##FFFFFF
##5B37C81.007.432.837.43
#FFFFFF7.431.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CC
Deuteranopia (green-blind)
#0051C5
Tritanopia (blue-blind)
#2C5E7C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5b37c8;
/* rgb */ color: rgb(91, 55, 200);
/* oklch */ color: oklch(47.3% 0.210 286.7);
Tailwind
colors: {
  custom: {
    50: '#9471da',
    500: '#5b37c8',
    950: '#000000',
  },
}
SCSS
$custom: #5b37c8;
$custom-light: #9471da;
$custom-dark: #000000;
JSON
{
  "hex": "#5b37c8",
  "rgb": {
    "r": 91,
    "g": 55,
    "b": 200
  },
  "hsl": {
    "h": 254.897,
    "s": 56.863,
    "l": 50
  },
  "oklch": {
    "l": 0.47299,
    "c": 0.20954,
    "h": 286.7
  },
  "luminance": 0.09127
}

Semantic roles & 50–950 ramp

primary
#5B37C8
secondary
#BECE8D
accent
#E048BA
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B37C8

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

Preview Lab → · Contrast checker → · Palette generator →

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