#5A37BD#5A37BD

#5A37BD is a mid, vivid violet. Relative luminance 0.086; OKLCH L 46.2% C 0.197 H 288.1°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#5A37BD
RGBrgb(90, 55, 189)
HSLhsl(256, 55%, 48%)
HSVhsv(256, 71%, 74%)
CMYKcmyk(52.4%, 70.9%, 0%, 25.9%)
CIE-LABlab(35.16, 48.26, -65.07)
CIE-LCHlch(35.16, 81.01, 306.56°)
OKLaboklab(46.23% 0.0612 -0.1869)
OKLCHoklch(46.23% 0.197 288.1)
XYZxyz(14.7653, 8.5794, 49.0122)
Luminance0.0858 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A37BD #9ABD37
analogous
#3757BD #5A37BD #9D37BD
triadic
#5A37BD #BD5A37 #37BD5A
tetradic
#5A37BD #BD3757 #9ABD37 #37BD9D
square
#5A37BD #BD3757 #9ABD37 #37BD9D
split-complementary
#5A37BD #BD9D37 #57BD37
monochromatic
#2D1B5E #43298E #5A37BD #7E60D1 #A490DF

Accessibility & contrast

On white

7.73
#5A37BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5A37BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A37BD
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A37BD#FFFFFF#000000##FFFFFF
##5A37BD1.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C1
Deuteranopia (green-blind)
#004FBA
Tritanopia (blue-blind)
#345A76
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a37bd;
/* rgb */ color: rgb(90, 55, 189);
/* oklch */ color: oklch(46.2% 0.197 288.1);
Tailwind
colors: {
  custom: {
    50: '#9271d2',
    500: '#5a37bd',
    950: '#000000',
  },
}
SCSS
$custom: #5a37bd;
$custom-light: #9271d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a37bd",
  "rgb": {
    "r": 90,
    "g": 55,
    "b": 189
  },
  "hsl": {
    "h": 255.672,
    "s": 54.918,
    "l": 47.843
  },
  "oklch": {
    "l": 0.46225,
    "c": 0.19672,
    "h": 288.1
  },
  "luminance": 0.0858
}

Semantic roles & 50–950 ramp

primary
#5A37BD
secondary
#B8C986
accent
#DE4AB7
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A37BD

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

Preview Lab → · Contrast checker → · Palette generator →

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