#5B37CB#5B37CB

#5B37CB is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.6% C 0.213 H 286.3°. Best body text is #FFFFFF at 7.36:1 contrast (WCAG AA passes).

Color values

HEX#5B37CB
RGBrgb(91, 55, 203)
HSLhsl(255, 59%, 51%)
HSVhsv(255, 73%, 80%)
CMYKcmyk(55.2%, 72.9%, 0%, 20.4%)
CIE-LABlab(36.49, 52.41, -71.07)
CIE-LCHlch(36.49, 88.30, 306.41°)
OKLaboklab(47.57% 0.0597 -0.2045)
OKLCHoklch(47.57% 0.213 286.3)
XYZxyz(16.4568, 9.2674, 57.4100)
Luminance0.0927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B37CB #A7CB37
analogous
#375DCB #5B37CB #A537CB
triadic
#5B37CB #CB5B37 #37CB5B
tetradic
#5B37CB #CB375D #A7CB37 #37CBA5
square
#5B37CB #CB375D #A7CB37 #37CBA5
split-complementary
#5B37CB #CBA537 #5DCB37
monochromatic
#2F1C6C #45299C #5B37CB #8368D8 #AB98E4

Accessibility & contrast

On white

7.36
#5B37CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#5B37CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B37CB
7.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B37CB#FFFFFF#000000##FFFFFF
##5B37CB1.007.362.857.36
#FFFFFF7.361.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACF
Deuteranopia (green-blind)
#0051C8
Tritanopia (blue-blind)
#285F7E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b37cb;
/* rgb */ color: rgb(91, 55, 203);
/* oklch */ color: oklch(47.6% 0.213 286.3);
Tailwind
colors: {
  custom: {
    50: '#9571dc',
    500: '#5b37cb',
    950: '#000000',
  },
}
SCSS
$custom: #5b37cb;
$custom-light: #9571dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b37cb",
  "rgb": {
    "r": 91,
    "g": 55,
    "b": 203
  },
  "hsl": {
    "h": 254.595,
    "s": 58.73,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47572,
    "c": 0.21302,
    "h": 286.3
  },
  "luminance": 0.09268
}

Semantic roles & 50–950 ramp

primary
#5B37CB
secondary
#C0D08E
accent
#E246BC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B37CB

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

Preview Lab → · Contrast checker → · Palette generator →

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