#5837AB#5837AB

#5837AB is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.5% C 0.175 H 290.6°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#5837AB
RGBrgb(88, 55, 171)
HSLhsl(257, 51%, 44%)
HSVhsv(257, 68%, 67%)
CMYKcmyk(48.5%, 67.8%, 0%, 32.9%)
CIE-LABlab(33.45, 42.73, -57.19)
CIE-LCHlch(33.45, 71.40, 306.77°)
OKLaboklab(44.49% 0.0615 -0.1639)
OKLCHoklch(44.49% 0.175 290.6)
XYZxyz(12.7393, 7.7469, 39.3442)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5837AB #8AAB37
analogous
#3750AB #5837AB #9237AB
triadic
#5837AB #AB5837 #37AB58
tetradic
#5837AB #AB3750 #8AAB37 #37AB92
square
#5837AB #AB3750 #8AAB37 #37AB92
split-complementary
#5837AB #AB9237 #50AB37
monochromatic
#28194E #40287D #5837AB #7756C9 #9C85D8

Accessibility & contrast

On white

8.24
#5837AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5837AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5837AB
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5837AB#FFFFFF#000000##FFFFFF
##5837AB1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#004CA9
Tritanopia (blue-blind)
#3D546C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5837ab;
/* rgb */ color: rgb(88, 55, 171);
/* oklch */ color: oklch(44.5% 0.175 290.6);
Tailwind
colors: {
  custom: {
    50: '#8e70c5',
    500: '#5837ab',
    950: '#000000',
  },
}
SCSS
$custom: #5837ab;
$custom-light: #8e70c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5837ab",
  "rgb": {
    "r": 88,
    "g": 55,
    "b": 171
  },
  "hsl": {
    "h": 257.069,
    "s": 51.327,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44486,
    "c": 0.17505,
    "h": 290.6
  },
  "luminance": 0.07747
}

Semantic roles & 50–950 ramp

primary
#5837AB
secondary
#AEC17C
accent
#DB4DB2
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5837AB

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

Preview Lab → · Contrast checker → · Palette generator →

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