#5A37BC#5A37BC

#5A37BC is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.1% C 0.196 H 288.3°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#5A37BC
RGBrgb(90, 55, 188)
HSLhsl(256, 55%, 48%)
HSVhsv(256, 71%, 74%)
CMYKcmyk(52.1%, 70.7%, 0%, 26.3%)
CIE-LABlab(35.08, 47.97, -64.62)
CIE-LCHlch(35.08, 80.48, 306.59°)
OKLaboklab(46.14% 0.0614 -0.1856)
OKLCHoklch(46.14% 0.196 288.3)
XYZxyz(14.6571, 8.5362, 48.4425)
Luminance0.0854 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A37BC #99BC37
analogous
#3757BC #5A37BC #9C37BC
triadic
#5A37BC #BC5A37 #37BC5A
tetradic
#5A37BC #BC3757 #99BC37 #37BC9C
square
#5A37BC #BC3757 #99BC37 #37BC9C
split-complementary
#5A37BC #BC9C37 #57BC37
monochromatic
#2D1B5D #43298D #5A37BC #7D60D0 #A48FDE

Accessibility & contrast

On white

7.76
#5A37BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5A37BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A37BC
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A37BC#FFFFFF#000000##FFFFFF
##5A37BC1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C0
Deuteranopia (green-blind)
#004FB9
Tritanopia (blue-blind)
#355A76
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a37bc;
/* rgb */ color: rgb(90, 55, 188);
/* oklch */ color: oklch(46.1% 0.196 288.3);
Tailwind
colors: {
  custom: {
    50: '#9271d1',
    500: '#5a37bc',
    950: '#000000',
  },
}
SCSS
$custom: #5a37bc;
$custom-light: #9271d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a37bc",
  "rgb": {
    "r": 90,
    "g": 55,
    "b": 188
  },
  "hsl": {
    "h": 255.789,
    "s": 54.733,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46137,
    "c": 0.19552,
    "h": 288.3
  },
  "luminance": 0.08537
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A37BC

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

Preview Lab → · Contrast checker → · Palette generator →

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