#5A36C3#5A36C3

#5A36C3 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.6% C 0.205 H 287.3°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#5A36C3
RGBrgb(90, 54, 195)
HSLhsl(255, 57%, 49%)
HSVhsv(255, 72%, 76%)
CMYKcmyk(53.8%, 72.3%, 0%, 23.5%)
CIE-LABlab(35.50, 50.49, -68.03)
CIE-LCHlch(35.50, 84.72, 306.58°)
OKLaboklab(46.63% 0.0608 -0.1956)
OKLCHoklch(46.63% 0.205 287.3)
XYZxyz(15.3830, 8.7513, 52.4978)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A36C3 #9FC336
analogous
#3659C3 #5A36C3 #A136C3
triadic
#5A36C3 #C35A36 #36C35A
tetradic
#5A36C3 #C33659 #9FC336 #36C3A1
square
#5A36C3 #C33659 #9FC336 #36C3A1
split-complementary
#5A36C3 #C3A136 #59C336
monochromatic
#2E1B63 #442993 #5A36C3 #7F63D4 #A692E1

Accessibility & contrast

On white

7.64
#5A36C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5A36C3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A36C3
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A36C3#FFFFFF#000000##FFFFFF
##5A36C31.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C7
Deuteranopia (green-blind)
#0050C0
Tritanopia (blue-blind)
#2F5C79
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5a36c3;
/* rgb */ color: rgb(90, 54, 195);
/* oklch */ color: oklch(46.6% 0.205 287.3);
Tailwind
colors: {
  custom: {
    50: '#9370d6',
    500: '#5a36c3',
    950: '#000000',
  },
}
SCSS
$custom: #5a36c3;
$custom-light: #9370d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a36c3",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 195
  },
  "hsl": {
    "h": 255.319,
    "s": 56.627,
    "l": 48.824
  },
  "oklch": {
    "l": 0.46627,
    "c": 0.20486,
    "h": 287.3
  },
  "luminance": 0.08752
}

Semantic roles & 50–950 ramp

primary
#5A36C3
secondary
#BBCC89
accent
#E048B9
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A36C3

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

Preview Lab → · Contrast checker → · Palette generator →

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