#5837BC#5837BC

#5837BC is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.9% C 0.196 H 287.4°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#5837BC
RGBrgb(88, 55, 188)
HSLhsl(255, 55%, 48%)
HSVhsv(255, 71%, 74%)
CMYKcmyk(53.2%, 70.7%, 0%, 26.3%)
CIE-LABlab(34.88, 47.65, -64.95)
CIE-LCHlch(34.88, 80.56, 306.27°)
OKLaboklab(45.95% 0.0585 -0.1867)
OKLCHoklch(45.95% 0.196 287.4)
XYZxyz(14.4651, 8.4372, 48.4335)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5837BC #9BBC37
analogous
#3759BC #5837BC #9A37BC
triadic
#5837BC #BC5837 #37BC58
tetradic
#5837BC #BC3759 #9BBC37 #37BC9A
square
#5837BC #BC3759 #9BBC37 #37BC9A
split-complementary
#5837BC #BC9A37 #59BC37
monochromatic
#2C1B5D #42298D #5837BC #7C60D0 #A38FDE

Accessibility & contrast

On white

7.81
#5837BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5837BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5837BC
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5837BC#FFFFFF#000000##FFFFFF
##5837BC1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C0
Deuteranopia (green-blind)
#004EB9
Tritanopia (blue-blind)
#305A76
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5837bc;
/* rgb */ color: rgb(88, 55, 188);
/* oklch */ color: oklch(45.9% 0.196 287.4);
Tailwind
colors: {
  custom: {
    50: '#9171d1',
    500: '#5837bc',
    950: '#000000',
  },
}
SCSS
$custom: #5837bc;
$custom-light: #9171d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5837bc",
  "rgb": {
    "r": 88,
    "g": 55,
    "b": 188
  },
  "hsl": {
    "h": 254.887,
    "s": 54.733,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45949,
    "c": 0.19563,
    "h": 287.4
  },
  "luminance": 0.08438
}

Semantic roles & 50–950 ramp

primary
#5837BC
secondary
#B8C986
accent
#DE4AB9
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5837BC

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

Preview Lab → · Contrast checker → · Palette generator →

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