#5A37C3#5A37C3

#5A37C3 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.8% C 0.204 H 287.1°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#5A37C3
RGBrgb(90, 55, 195)
HSLhsl(255, 56%, 49%)
HSVhsv(255, 72%, 76%)
CMYKcmyk(53.8%, 71.8%, 0%, 23.5%)
CIE-LABlab(35.68, 49.98, -67.73)
CIE-LCHlch(35.68, 84.18, 306.42°)
OKLaboklab(46.76% 0.06 -0.1948)
OKLCHoklch(46.76% 0.204 287.1)
XYZxyz(15.4300, 8.8454, 52.5135)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A37C3 #A0C337
analogous
#375AC3 #5A37C3 #A037C3
triadic
#5A37C3 #C35A37 #37C35A
tetradic
#5A37C3 #C3375A #A0C337 #37C3A0
square
#5A37C3 #C3375A #A0C337 #37C3A0
split-complementary
#5A37C3 #C3A037 #5AC337
monochromatic
#2E1C64 #442A93 #5A37C3 #8064D3 #A794E1

Accessibility & contrast

On white

7.58
#5A37C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5A37C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A37C3
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A37C3#FFFFFF#000000##FFFFFF
##5A37C31.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C7
Deuteranopia (green-blind)
#0050C0
Tritanopia (blue-blind)
#2F5C79
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a37c3;
/* rgb */ color: rgb(90, 55, 195);
/* oklch */ color: oklch(46.8% 0.204 287.1);
Tailwind
colors: {
  custom: {
    50: '#9371d6',
    500: '#5a37c3',
    950: '#000000',
  },
}
SCSS
$custom: #5a37c3;
$custom-light: #9371d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a37c3",
  "rgb": {
    "r": 90,
    "g": 55,
    "b": 195
  },
  "hsl": {
    "h": 255,
    "s": 56,
    "l": 49.02
  },
  "oklch": {
    "l": 0.46757,
    "c": 0.20379,
    "h": 287.1
  },
  "luminance": 0.08846
}

Semantic roles & 50–950 ramp

primary
#5A37C3
secondary
#BBCC8A
accent
#DF49BA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A37C3

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

Preview Lab → · Contrast checker → · Palette generator →

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