#5A37C0#5A37C0

#5A37C0 is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.5% C 0.200 H 287.6°. Best body text is #FFFFFF at 7.66:1 contrast (WCAG AA passes).

Color values

HEX#5A37C0
RGBrgb(90, 55, 192)
HSLhsl(255, 55%, 48%)
HSVhsv(255, 71%, 75%)
CMYKcmyk(53.1%, 71.4%, 0%, 24.7%)
CIE-LABlab(35.42, 49.12, -66.40)
CIE-LCHlch(35.42, 82.60, 306.49°)
OKLaboklab(46.49% 0.0606 -0.1909)
OKLCHoklch(46.49% 0.2 287.6)
XYZxyz(15.0943, 8.7111, 50.7450)
Luminance0.0871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A37C0 #9DC037
analogous
#3759C0 #5A37C0 #9E37C0
triadic
#5A37C0 #C05A37 #37C05A
tetradic
#5A37C0 #C03759 #9DC037 #37C09E
square
#5A37C0 #C03759 #9DC037 #37C09E
split-complementary
#5A37C0 #C09E37 #59C037
monochromatic
#2D1C61 #442990 #5A37C0 #7F62D2 #A692E0

Accessibility & contrast

On white

7.66
#5A37C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5A37C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A37C0
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A37C0#FFFFFF#000000##FFFFFF
##5A37C01.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C4
Deuteranopia (green-blind)
#0050BD
Tritanopia (blue-blind)
#315B78
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a37c0;
/* rgb */ color: rgb(90, 55, 192);
/* oklch */ color: oklch(46.5% 0.200 287.6);
Tailwind
colors: {
  custom: {
    50: '#9371d4',
    500: '#5a37c0',
    950: '#000000',
  },
}
SCSS
$custom: #5a37c0;
$custom-light: #9371d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a37c0",
  "rgb": {
    "r": 90,
    "g": 55,
    "b": 192
  },
  "hsl": {
    "h": 255.328,
    "s": 55.466,
    "l": 48.431
  },
  "oklch": {
    "l": 0.4649,
    "c": 0.20026,
    "h": 287.6
  },
  "luminance": 0.08712
}

Semantic roles & 50–950 ramp

primary
#5A37C0
secondary
#BACB88
accent
#DF49B9
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A37C0

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

Preview Lab → · Contrast checker → · Palette generator →

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