#5A37BF#5A37BF

#5A37BF is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.4% C 0.199 H 287.8°. Best body text is #FFFFFF at 7.68:1 contrast (WCAG AA passes).

Color values

HEX#5A37BF
RGBrgb(90, 55, 191)
HSLhsl(255, 55%, 48%)
HSVhsv(255, 71%, 75%)
CMYKcmyk(52.9%, 71.2%, 0%, 25.1%)
CIE-LABlab(35.33, 48.83, -65.96)
CIE-LCHlch(35.33, 82.07, 306.51°)
OKLaboklab(46.4% 0.0608 -0.1896)
OKLCHoklch(46.4% 0.199 287.8)
XYZxyz(14.9838, 8.6669, 50.1635)
Luminance0.0867 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A37BF #9CBF37
analogous
#3758BF #5A37BF #9E37BF
triadic
#5A37BF #BF5A37 #37BF5A
tetradic
#5A37BF #BF3758 #9CBF37 #37BF9E
square
#5A37BF #BF3758 #9CBF37 #37BF9E
split-complementary
#5A37BF #BF9E37 #58BF37
monochromatic
#2D1C60 #44298F #5A37BF #7E62D2 #A591DF

Accessibility & contrast

On white

7.68
#5A37BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5A37BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A37BF
7.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A37BF#FFFFFF#000000##FFFFFF
##5A37BF1.007.682.737.68
#FFFFFF7.681.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C3
Deuteranopia (green-blind)
#004FBC
Tritanopia (blue-blind)
#325B77
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a37bf;
/* rgb */ color: rgb(90, 55, 191);
/* oklch */ color: oklch(46.4% 0.199 287.8);
Tailwind
colors: {
  custom: {
    50: '#9271d3',
    500: '#5a37bf',
    950: '#000000',
  },
}
SCSS
$custom: #5a37bf;
$custom-light: #9271d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a37bf",
  "rgb": {
    "r": 90,
    "g": 55,
    "b": 191
  },
  "hsl": {
    "h": 255.441,
    "s": 55.285,
    "l": 48.235
  },
  "oklch": {
    "l": 0.46402,
    "c": 0.19907,
    "h": 287.8
  },
  "luminance": 0.08668
}

Semantic roles & 50–950 ramp

primary
#5A37BF
secondary
#B9CA88
accent
#DF49B8
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A37BF

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

Preview Lab → · Contrast checker → · Palette generator →

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