#5837BF#5837BF

#5837BF is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.2% C 0.199 H 286.9°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#5837BF
RGBrgb(88, 55, 191)
HSLhsl(255, 55%, 48%)
HSVhsv(255, 71%, 75%)
CMYKcmyk(53.9%, 71.2%, 0%, 25.1%)
CIE-LABlab(35.14, 48.52, -66.29)
CIE-LCHlch(35.14, 82.15, 306.20°)
OKLaboklab(46.22% 0.058 -0.1906)
OKLCHoklch(46.22% 0.199 286.9)
XYZxyz(14.7919, 8.5679, 50.1545)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5837BF #9EBF37
analogous
#375ABF #5837BF #9C37BF
triadic
#5837BF #BF5837 #37BF58
tetradic
#5837BF #BF375A #9EBF37 #37BF9C
square
#5837BF #BF375A #9EBF37 #37BF9C
split-complementary
#5837BF #BF9C37 #5ABF37
monochromatic
#2C1C60 #42298F #5837BF #7D62D2 #A491DF

Accessibility & contrast

On white

7.74
#5837BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5837BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5837BF
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5837BF#FFFFFF#000000##FFFFFF
##5837BF1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C3
Deuteranopia (green-blind)
#004FBC
Tritanopia (blue-blind)
#2D5B77
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5837bf;
/* rgb */ color: rgb(88, 55, 191);
/* oklch */ color: oklch(46.2% 0.199 286.9);
Tailwind
colors: {
  custom: {
    50: '#9171d3',
    500: '#5837bf',
    950: '#000000',
  },
}
SCSS
$custom: #5837bf;
$custom-light: #9171d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5837bf",
  "rgb": {
    "r": 88,
    "g": 55,
    "b": 191
  },
  "hsl": {
    "h": 254.559,
    "s": 55.285,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46215,
    "c": 0.19921,
    "h": 286.9
  },
  "luminance": 0.08569
}

Semantic roles & 50–950 ramp

primary
#5837BF
secondary
#BACA88
accent
#DF49BA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5837BF

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

Preview Lab → · Contrast checker → · Palette generator →

#5837BF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva