#5A36C4#5A36C4

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

Color values

HEX#5A36C4
RGBrgb(90, 54, 196)
HSLhsl(255, 57%, 49%)
HSVhsv(255, 72%, 77%)
CMYKcmyk(54.1%, 72.4%, 0%, 23.1%)
CIE-LABlab(35.59, 50.78, -68.47)
CIE-LCHlch(35.59, 85.25, 306.56°)
OKLaboklab(46.72% 0.0606 -0.1969)
OKLCHoklch(46.72% 0.206 287.1)
XYZxyz(15.4965, 8.7967, 53.0952)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A36C4 #A0C436
analogous
#3659C4 #5A36C4 #A136C4
triadic
#5A36C4 #C45A36 #36C45A
tetradic
#5A36C4 #C43659 #A0C436 #36C4A1
square
#5A36C4 #C43659 #A0C436 #36C4A1
split-complementary
#5A36C4 #C4A136 #59C436
monochromatic
#2E1C64 #442994 #5A36C4 #8063D4 #A793E1

Accessibility & contrast

On white

7.61
#5A36C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5A36C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A36C4
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A36C4#FFFFFF#000000##FFFFFF
##5A36C41.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C8
Deuteranopia (green-blind)
#0050C1
Tritanopia (blue-blind)
#2E5C7A
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5a36c4;
/* rgb */ color: rgb(90, 54, 196);
/* oklch */ color: oklch(46.7% 0.206 287.1);
Tailwind
colors: {
  custom: {
    50: '#9371d7',
    500: '#5a36c4',
    950: '#000000',
  },
}
SCSS
$custom: #5a36c4;
$custom-light: #9371d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a36c4",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 196
  },
  "hsl": {
    "h": 255.211,
    "s": 56.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.46717,
    "c": 0.20603,
    "h": 287.1
  },
  "luminance": 0.08798
}

Semantic roles & 50–950 ramp

primary
#5A36C4
secondary
#BBCC89
accent
#E048B9
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A36C4

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

Preview Lab → · Contrast checker → · Palette generator →

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