#5837BA#5837BA

#5837BA is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.8% C 0.193 H 287.8°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#5837BA
RGBrgb(88, 55, 186)
HSLhsl(255, 54%, 47%)
HSVhsv(255, 70%, 73%)
CMYKcmyk(52.7%, 70.4%, 0%, 27.1%)
CIE-LABlab(34.70, 47.07, -64.06)
CIE-LCHlch(34.70, 79.49, 306.31°)
OKLaboklab(45.77% 0.0589 -0.184)
OKLCHoklch(45.77% 0.193 287.8)
XYZxyz(14.2510, 8.3516, 47.3060)
Luminance0.0835 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5837BA #99BA37
analogous
#3757BA #5837BA #9A37BA
triadic
#5837BA #BA5837 #37BA58
tetradic
#5837BA #BA3757 #99BA37 #37BA9A
square
#5837BA #BA3757 #99BA37 #37BA9A
split-complementary
#5837BA #BA9A37 #57BA37
monochromatic
#2B1B5C #42298B #5837BA #7B5FD0 #A28EDE

Accessibility & contrast

On white

7.86
#5837BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5837BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5837BA
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5837BA#FFFFFF#000000##FFFFFF
##5837BA1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BE
Deuteranopia (green-blind)
#004EB7
Tritanopia (blue-blind)
#325974
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5837ba;
/* rgb */ color: rgb(88, 55, 186);
/* oklch */ color: oklch(45.8% 0.193 287.8);
Tailwind
colors: {
  custom: {
    50: '#9171d0',
    500: '#5837ba',
    950: '#000000',
  },
}
SCSS
$custom: #5837ba;
$custom-light: #9171d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5837ba",
  "rgb": {
    "r": 88,
    "g": 55,
    "b": 186
  },
  "hsl": {
    "h": 255.115,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45773,
    "c": 0.19324,
    "h": 287.8
  },
  "luminance": 0.08352
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5837BA

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

Preview Lab → · Contrast checker → · Palette generator →

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