#5A36BF#5A36BF

#5A36BF is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.3% C 0.200 H 287.9°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#5A36BF
RGBrgb(90, 54, 191)
HSLhsl(256, 56%, 48%)
HSVhsv(256, 72%, 75%)
CMYKcmyk(52.9%, 71.7%, 0%, 25.1%)
CIE-LABlab(35.15, 49.35, -66.27)
CIE-LCHlch(35.15, 82.63, 306.68°)
OKLaboklab(46.27% 0.0617 -0.1904)
OKLCHoklch(46.27% 0.2 287.9)
XYZxyz(14.9368, 8.5728, 50.1478)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A36BF #9BBF36
analogous
#3657BF #5A36BF #9E36BF
triadic
#5A36BF #BF5A36 #36BF5A
tetradic
#5A36BF #BF3657 #9BBF36 #36BF9E
square
#5A36BF #BF3657 #9BBF36 #36BF9E
split-complementary
#5A36BF #BF9E36 #57BF36
monochromatic
#2D1B60 #44298F #5A36BF #7E60D2 #A590E0

Accessibility & contrast

On white

7.74
#5A36BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5A36BF
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A36BF#FFFFFF#000000##FFFFFF
##5A36BF1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a36bf;
/* rgb */ color: rgb(90, 54, 191);
/* oklch */ color: oklch(46.3% 0.200 287.9);
Tailwind
colors: {
  custom: {
    50: '#9370d3',
    500: '#5a36bf',
    950: '#000000',
  },
}
SCSS
$custom: #5a36bf;
$custom-light: #9370d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a36bf",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 191
  },
  "hsl": {
    "h": 255.766,
    "s": 55.918,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46269,
    "c": 0.20018,
    "h": 287.9
  },
  "luminance": 0.08574
}

Semantic roles & 50–950 ramp

primary
#5A36BF
secondary
#B8CA87
accent
#DF49B8
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A36BF

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

Preview Lab → · Contrast checker → · Palette generator →

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