#5837BE#5837BE

#5837BE is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.1% C 0.198 H 287.1°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#5837BE
RGBrgb(88, 55, 190)
HSLhsl(255, 55%, 48%)
HSVhsv(255, 71%, 75%)
CMYKcmyk(53.7%, 71.1%, 0%, 25.5%)
CIE-LABlab(35.05, 48.23, -65.84)
CIE-LCHlch(35.05, 81.62, 306.22°)
OKLaboklab(46.13% 0.0582 -0.1893)
OKLCHoklch(46.13% 0.198 287.1)
XYZxyz(14.6822, 8.5240, 49.5769)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5837BE #9DBE37
analogous
#3759BE #5837BE #9C37BE
triadic
#5837BE #BE5837 #37BE58
tetradic
#5837BE #BE3759 #9DBE37 #37BE9C
square
#5837BE #BE3759 #9DBE37 #37BE9C
split-complementary
#5837BE #BE9C37 #59BE37
monochromatic
#2C1C5F #42298F #5837BE #7C61D1 #A490DF

Accessibility & contrast

On white

7.76
#5837BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5837BE
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5837BE#FFFFFF#000000##FFFFFF
##5837BE1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C2
Deuteranopia (green-blind)
#004FBB
Tritanopia (blue-blind)
#2E5B77
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5837be;
/* rgb */ color: rgb(88, 55, 190);
/* oklch */ color: oklch(46.1% 0.198 287.1);
Tailwind
colors: {
  custom: {
    50: '#9171d3',
    500: '#5837be',
    950: '#000000',
  },
}
SCSS
$custom: #5837be;
$custom-light: #9171d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5837be",
  "rgb": {
    "r": 88,
    "g": 55,
    "b": 190
  },
  "hsl": {
    "h": 254.667,
    "s": 55.102,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46126,
    "c": 0.19802,
    "h": 287.1
  },
  "luminance": 0.08525
}

Semantic roles & 50–950 ramp

primary
#5837BE
secondary
#B9CA87
accent
#DE49BA
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5837BE

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

Preview Lab → · Contrast checker → · Palette generator →

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