#5837BD#5837BD

#5837BD is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.0% C 0.197 H 287.2°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#5837BD
RGBrgb(88, 55, 189)
HSLhsl(255, 55%, 48%)
HSVhsv(255, 71%, 74%)
CMYKcmyk(53.4%, 70.9%, 0%, 25.9%)
CIE-LABlab(34.96, 47.94, -65.40)
CIE-LCHlch(34.96, 81.09, 306.24°)
OKLaboklab(46.04% 0.0583 -0.188)
OKLCHoklch(46.04% 0.197 287.2)
XYZxyz(14.5733, 8.4805, 49.0032)
Luminance0.0848 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5837BD #9CBD37
analogous
#3759BD #5837BD #9B37BD
triadic
#5837BD #BD5837 #37BD58
tetradic
#5837BD #BD3759 #9CBD37 #37BD9B
square
#5837BD #BD3759 #9CBD37 #37BD9B
split-complementary
#5837BD #BD9B37 #59BD37
monochromatic
#2C1B5E #42298E #5837BD #7C60D1 #A390DF

Accessibility & contrast

On white

7.79
#5837BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5837BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5837BD
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5837BD#FFFFFF#000000##FFFFFF
##5837BD1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C1
Deuteranopia (green-blind)
#004EBA
Tritanopia (blue-blind)
#2F5A76
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5837bd;
/* rgb */ color: rgb(88, 55, 189);
/* oklch */ color: oklch(46.0% 0.197 287.2);
Tailwind
colors: {
  custom: {
    50: '#9171d2',
    500: '#5837bd',
    950: '#000000',
  },
}
SCSS
$custom: #5837bd;
$custom-light: #9171d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5837bd",
  "rgb": {
    "r": 88,
    "g": 55,
    "b": 189
  },
  "hsl": {
    "h": 254.776,
    "s": 54.918,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46037,
    "c": 0.19682,
    "h": 287.2
  },
  "luminance": 0.08481
}

Semantic roles & 50–950 ramp

primary
#5837BD
secondary
#B9C986
accent
#DE4ABA
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5837BD

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

Preview Lab → · Contrast checker → · Palette generator →

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