#5A37BA#5A37BA

#5A37BA is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.0% C 0.193 H 288.7°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#5A37BA
RGBrgb(90, 55, 186)
HSLhsl(256, 54%, 47%)
HSVhsv(256, 70%, 73%)
CMYKcmyk(51.6%, 70.4%, 0%, 27.1%)
CIE-LABlab(34.90, 47.40, -63.72)
CIE-LCHlch(34.90, 79.42, 306.64°)
OKLaboklab(45.96% 0.0618 -0.183)
OKLCHoklch(45.96% 0.193 288.7)
XYZxyz(14.4430, 8.4505, 47.3150)
Luminance0.0845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A37BA #97BA37
analogous
#3755BA #5A37BA #9C37BA
triadic
#5A37BA #BA5A37 #37BA5A
tetradic
#5A37BA #BA3755 #97BA37 #37BA9C
square
#5A37BA #BA3755 #97BA37 #37BA9C
split-complementary
#5A37BA #BA9C37 #55BA37
monochromatic
#2C1B5C #43298B #5A37BA #7D5FD0 #A38EDE

Accessibility & contrast

On white

7.81
#5A37BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5A37BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A37BA
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A37BA#FFFFFF#000000##FFFFFF
##5A37BA1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BE
Deuteranopia (green-blind)
#004FB7
Tritanopia (blue-blind)
#375974
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a37ba;
/* rgb */ color: rgb(90, 55, 186);
/* oklch */ color: oklch(46.0% 0.193 288.7);
Tailwind
colors: {
  custom: {
    50: '#9271d0',
    500: '#5a37ba',
    950: '#000000',
  },
}
SCSS
$custom: #5a37ba;
$custom-light: #9271d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a37ba",
  "rgb": {
    "r": 90,
    "g": 55,
    "b": 186
  },
  "hsl": {
    "h": 256.031,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45962,
    "c": 0.19315,
    "h": 288.7
  },
  "luminance": 0.08451
}

Semantic roles & 50–950 ramp

primary
#5A37BA
secondary
#B6C885
accent
#DE4AB6
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5A37BA

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

Preview Lab → · Contrast checker → · Palette generator →

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