#5A37C5#5A37C5

#5A37C5 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 46.9% C 0.206 H 286.8°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#5A37C5
RGBrgb(90, 55, 197)
HSLhsl(255, 56%, 49%)
HSVhsv(255, 72%, 77%)
CMYKcmyk(54.3%, 72.1%, 0%, 22.7%)
CIE-LABlab(35.86, 50.55, -68.61)
CIE-LCHlch(35.86, 85.22, 306.38°)
OKLaboklab(46.94% 0.0596 -0.1973)
OKLCHoklch(46.94% 0.206 286.8)
XYZxyz(15.6577, 8.9364, 53.7124)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A37C5 #A2C537
analogous
#375BC5 #5A37C5 #A137C5
triadic
#5A37C5 #C55A37 #37C55A
tetradic
#5A37C5 #C5375B #A2C537 #37C5A1
square
#5A37C5 #C5375B #A2C537 #37C5A1
split-complementary
#5A37C5 #C5A137 #5BC537
monochromatic
#2E1C65 #442A95 #5A37C5 #8065D4 #A895E1

Accessibility & contrast

On white

7.53
#5A37C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5A37C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A37C5
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A37C5#FFFFFF#000000##FFFFFF
##5A37C51.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C9
Deuteranopia (green-blind)
#0050C2
Tritanopia (blue-blind)
#2C5D7B
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a37c5;
/* rgb */ color: rgb(90, 55, 197);
/* oklch */ color: oklch(46.9% 0.206 286.8);
Tailwind
colors: {
  custom: {
    50: '#9371d8',
    500: '#5a37c5',
    950: '#000000',
  },
}
SCSS
$custom: #5a37c5;
$custom-light: #9371d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a37c5",
  "rgb": {
    "r": 90,
    "g": 55,
    "b": 197
  },
  "hsl": {
    "h": 254.789,
    "s": 56.349,
    "l": 49.412
  },
  "oklch": {
    "l": 0.46937,
    "c": 0.20613,
    "h": 286.8
  },
  "luminance": 0.08937
}

Semantic roles & 50–950 ramp

primary
#5A37C5
secondary
#BDCD8B
accent
#E048BA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A37C5

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

Preview Lab → · Contrast checker → · Palette generator →

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