#5837AE#5837AE

#5837AE is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.7% C 0.179 H 290.0°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#5837AE
RGBrgb(88, 55, 174)
HSLhsl(257, 52%, 45%)
HSVhsv(257, 68%, 68%)
CMYKcmyk(49.4%, 68.4%, 0%, 31.8%)
CIE-LABlab(33.69, 43.60, -58.59)
CIE-LCHlch(33.69, 73.03, 306.66°)
OKLaboklab(44.74% 0.061 -0.168)
OKLCHoklch(44.74% 0.179 290)
XYZxyz(13.0285, 7.8625, 40.8673)
Luminance0.0786 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5837AE #8DAE37
analogous
#3751AE #5837AE #9437AE
triadic
#5837AE #AE5837 #37AE58
tetradic
#5837AE #AE3751 #8DAE37 #37AE94
square
#5837AE #AE3751 #8DAE37 #37AE94
split-complementary
#5837AE #AE9437 #51AE37
monochromatic
#291A51 #40287F #5837AE #7858CA #9D86D9

Accessibility & contrast

On white

8.16
#5837AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5837AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5837AE
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5837AE#FFFFFF#000000##FFFFFF
##5837AE1.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B2
Deuteranopia (green-blind)
#004CAC
Tritanopia (blue-blind)
#3B556E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5837ae;
/* rgb */ color: rgb(88, 55, 174);
/* oklch */ color: oklch(44.7% 0.179 290.0);
Tailwind
colors: {
  custom: {
    50: '#8f70c7',
    500: '#5837ae',
    950: '#000000',
  },
}
SCSS
$custom: #5837ae;
$custom-light: #8f70c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5837ae",
  "rgb": {
    "r": 88,
    "g": 55,
    "b": 174
  },
  "hsl": {
    "h": 256.639,
    "s": 51.965,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44738,
    "c": 0.17873,
    "h": 290
  },
  "luminance": 0.07863
}

Semantic roles & 50–950 ramp

primary
#5837AE
secondary
#B0C37E
accent
#DB4CB4
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5837AE

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

Preview Lab → · Contrast checker → · Palette generator →

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