#5837BB#5837BB

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

Color values

HEX#5837BB
RGBrgb(88, 55, 187)
HSLhsl(255, 55%, 47%)
HSVhsv(255, 71%, 73%)
CMYKcmyk(52.9%, 70.6%, 0%, 26.7%)
CIE-LABlab(34.79, 47.36, -64.50)
CIE-LCHlch(34.79, 80.03, 306.29°)
OKLaboklab(45.86% 0.0587 -0.1854)
OKLCHoklch(45.86% 0.194 287.6)
XYZxyz(14.3577, 8.3942, 47.8678)
Luminance0.0839 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5837BB #9ABB37
analogous
#3758BB #5837BB #9A37BB
triadic
#5837BB #BB5837 #37BB58
tetradic
#5837BB #BB3758 #9ABB37 #37BB9A
square
#5837BB #BB3758 #9ABB37 #37BB9A
split-complementary
#5837BB #BB9A37 #58BB37
monochromatic
#2B1B5C #42298C #5837BB #7B5FD0 #A28EDE

Accessibility & contrast

On white

7.84
#5837BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5837BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5837BB
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5837BB#FFFFFF#000000##FFFFFF
##5837BB1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BF
Deuteranopia (green-blind)
#004EB8
Tritanopia (blue-blind)
#315A75
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5837bb;
/* rgb */ color: rgb(88, 55, 187);
/* oklch */ color: oklch(45.9% 0.194 287.6);
Tailwind
colors: {
  custom: {
    50: '#9171d1',
    500: '#5837bb',
    950: '#000000',
  },
}
SCSS
$custom: #5837bb;
$custom-light: #9171d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5837bb",
  "rgb": {
    "r": 88,
    "g": 55,
    "b": 187
  },
  "hsl": {
    "h": 255,
    "s": 54.545,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45861,
    "c": 0.19444,
    "h": 287.6
  },
  "luminance": 0.08395
}

Semantic roles & 50–950 ramp

primary
#5837BB
secondary
#B8C985
accent
#DE4AB9
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5837BB

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

Preview Lab → · Contrast checker → · Palette generator →

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