#5B37D0#5B37D0

#5B37D0 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.0% C 0.219 H 285.5°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#5B37D0
RGBrgb(91, 55, 208)
HSLhsl(254, 62%, 52%)
HSVhsv(254, 74%, 82%)
CMYKcmyk(56.2%, 73.6%, 0%, 18.4%)
CIE-LABlab(36.95, 53.83, -73.22)
CIE-LCHlch(36.95, 90.88, 306.32°)
OKLaboklab(48.03% 0.0585 -0.2108)
OKLCHoklch(48.03% 0.219 285.5)
XYZxyz(17.0623, 9.5096, 60.5987)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B37D0 #ACD037
analogous
#3760D0 #5B37D0 #A837D0
triadic
#5B37D0 #D05B37 #37D05B
tetradic
#5B37D0 #D03760 #ACD037 #37D0A8
square
#5B37D0 #D03760 #ACD037 #37D0A8
split-complementary
#5B37D0 #D0A837 #60D037
monochromatic
#2F1B72 #4426A3 #5B37D0 #8469DC #AC9AE7

Accessibility & contrast

On white

7.24
#5B37D0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5B37D0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B37D0
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B37D0#FFFFFF#000000##FFFFFF
##5B37D01.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD4
Deuteranopia (green-blind)
#0052CD
Tritanopia (blue-blind)
#226181
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b37d0;
/* rgb */ color: rgb(91, 55, 208);
/* oklch */ color: oklch(48.0% 0.219 285.5);
Tailwind
colors: {
  custom: {
    50: '#9672e0',
    500: '#5b37d0',
    950: '#000000',
  },
}
SCSS
$custom: #5b37d0;
$custom-light: #9672e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b37d0",
  "rgb": {
    "r": 91,
    "g": 55,
    "b": 208
  },
  "hsl": {
    "h": 254.118,
    "s": 61.943,
    "l": 51.569
  },
  "oklch": {
    "l": 0.4803,
    "c": 0.21878,
    "h": 285.5
  },
  "luminance": 0.09511
}

Semantic roles & 50–950 ramp

primary
#5B37D0
secondary
#C3D390
accent
#E543BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5B37D0

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

Preview Lab → · Contrast checker → · Palette generator →

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