#5A37AB#5A37AB

#5A37AB is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.7% C 0.175 H 291.6°. Best body text is #FFFFFF at 8.17:1 contrast (WCAG AA passes).

Color values

HEX#5A37AB
RGBrgb(90, 55, 171)
HSLhsl(258, 51%, 44%)
HSVhsv(258, 68%, 67%)
CMYKcmyk(47.4%, 67.8%, 0%, 32.9%)
CIE-LABlab(33.66, 43.11, -56.84)
CIE-LCHlch(33.66, 71.34, 307.18°)
OKLaboklab(44.69% 0.0644 -0.1628)
OKLCHoklch(44.69% 0.175 291.6)
XYZxyz(12.9313, 7.8459, 39.3532)
Luminance0.0785 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A37AB #88AB37
analogous
#374EAB #5A37AB #9437AB
triadic
#5A37AB #AB5A37 #37AB5A
tetradic
#5A37AB #AB374E #88AB37 #37AB94
square
#5A37AB #AB374E #88AB37 #37AB94
split-complementary
#5A37AB #AB9437 #4EAB37
monochromatic
#29194E #42287D #5A37AB #7956C9 #9E85D8

Accessibility & contrast

On white

8.17
#5A37AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#5A37AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A37AB
8.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A37AB#FFFFFF#000000##FFFFFF
##5A37AB1.008.172.578.17
#FFFFFF8.171.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051AF
Deuteranopia (green-blind)
#004DA9
Tritanopia (blue-blind)
#41546C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5a37ab;
/* rgb */ color: rgb(90, 55, 171);
/* oklch */ color: oklch(44.7% 0.175 291.6);
Tailwind
colors: {
  custom: {
    50: '#9070c5',
    500: '#5a37ab',
    950: '#000000',
  },
}
SCSS
$custom: #5a37ab;
$custom-light: #9070c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a37ab",
  "rgb": {
    "r": 90,
    "g": 55,
    "b": 171
  },
  "hsl": {
    "h": 258.103,
    "s": 51.327,
    "l": 44.314
  },
  "oklch": {
    "l": 0.44686,
    "c": 0.17506,
    "h": 291.6
  },
  "luminance": 0.07846
}

Semantic roles & 50–950 ramp

primary
#5A37AB
secondary
#ADC17C
accent
#DB4DB0
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5A37AB

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

Preview Lab → · Contrast checker → · Palette generator →

#5A37AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva