#5A36BC#5A36BC

#5A36BC is a mid, vivid violet. Relative luminance 0.084; OKLCH L 46.0% C 0.197 H 288.5°. Best body text is #FFFFFF at 7.81:1 contrast (WCAG AA passes).

Color values

HEX#5A36BC
RGBrgb(90, 54, 188)
HSLhsl(256, 55%, 47%)
HSVhsv(256, 71%, 74%)
CMYKcmyk(52.1%, 71.3%, 0%, 26.3%)
CIE-LABlab(34.89, 48.50, -64.93)
CIE-LCHlch(34.89, 81.04, 306.76°)
OKLaboklab(46% 0.0623 -0.1865)
OKLCHoklch(46% 0.197 288.5)
XYZxyz(14.6101, 8.4421, 48.4269)
Luminance0.0844 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A36BC #98BC36
analogous
#3655BC #5A36BC #9D36BC
triadic
#5A36BC #BC5A36 #36BC5A
tetradic
#5A36BC #BC3655 #98BC36 #36BC9D
square
#5A36BC #BC3655 #98BC36 #36BC9D
split-complementary
#5A36BC #BC9D36 #55BC36
monochromatic
#2C1B5D #43288C #5A36BC #7D5ED1 #A48EDF

Accessibility & contrast

On white

7.81
#5A36BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5A36BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A36BC
7.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A36BC#FFFFFF#000000##FFFFFF
##5A36BC1.007.812.697.81
#FFFFFF7.811.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a36bc;
/* rgb */ color: rgb(90, 54, 188);
/* oklch */ color: oklch(46.0% 0.197 288.5);
Tailwind
colors: {
  custom: {
    50: '#9270d1',
    500: '#5a36bc',
    950: '#000000',
  },
}
SCSS
$custom: #5a36bc;
$custom-light: #9270d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a36bc",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 188
  },
  "hsl": {
    "h": 256.119,
    "s": 55.372,
    "l": 47.451
  },
  "oklch": {
    "l": 0.46003,
    "c": 0.19665,
    "h": 288.5
  },
  "luminance": 0.08443
}

Semantic roles & 50–950 ramp

primary
#5A36BC
secondary
#B7C985
accent
#DF49B7
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A36BC

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

Preview Lab → · Contrast checker → · Palette generator →

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