#5837AD#5837AD

#5837AD is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.7% C 0.178 H 290.2°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#5837AD
RGBrgb(88, 55, 173)
HSLhsl(257, 52%, 45%)
HSVhsv(257, 68%, 68%)
CMYKcmyk(49.1%, 68.2%, 0%, 32.2%)
CIE-LABlab(33.61, 43.31, -58.12)
CIE-LCHlch(33.61, 72.49, 306.69°)
OKLaboklab(44.65% 0.0612 -0.1666)
OKLCHoklch(44.65% 0.178 290.2)
XYZxyz(12.9314, 7.8237, 40.3558)
Luminance0.0782 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5837AD #8CAD37
analogous
#3751AD #5837AD #9337AD
triadic
#5837AD #AD5837 #37AD58
tetradic
#5837AD #AD3751 #8CAD37 #37AD93
square
#5837AD #AD3751 #8CAD37 #37AD93
split-complementary
#5837AD #AD9337 #51AD37
monochromatic
#291950 #40287F #5837AD #7757CA #9D86D8

Accessibility & contrast

On white

8.19
#5837AD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#5837AD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5837AD
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5837AD#FFFFFF#000000##FFFFFF
##5837AD1.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B1
Deuteranopia (green-blind)
#004CAB
Tritanopia (blue-blind)
#3C546D
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5837ad;
/* rgb */ color: rgb(88, 55, 173);
/* oklch */ color: oklch(44.7% 0.178 290.2);
Tailwind
colors: {
  custom: {
    50: '#8f70c6',
    500: '#5837ad',
    950: '#000000',
  },
}
SCSS
$custom: #5837ad;
$custom-light: #8f70c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5837ad",
  "rgb": {
    "r": 88,
    "g": 55,
    "b": 173
  },
  "hsl": {
    "h": 256.78,
    "s": 51.754,
    "l": 44.706
  },
  "oklch": {
    "l": 0.44654,
    "c": 0.17751,
    "h": 290.2
  },
  "luminance": 0.07824
}

Semantic roles & 50–950 ramp

primary
#5837AD
secondary
#AFC27D
accent
#DB4DB3
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5837AD

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

Preview Lab → · Contrast checker → · Palette generator →

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