#5A36B2#5A36B2

#5A36B2 is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.1% C 0.185 H 290.3°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#5A36B2
RGBrgb(90, 54, 178)
HSLhsl(257, 53%, 45%)
HSVhsv(257, 70%, 70%)
CMYKcmyk(49.4%, 69.7%, 0%, 30.2%)
CIE-LABlab(34.04, 45.65, -60.40)
CIE-LCHlch(34.04, 75.71, 307.08°)
OKLaboklab(45.14% 0.0642 -0.1732)
OKLCHoklch(45.14% 0.185 290.3)
XYZxyz(13.5692, 8.0258, 42.9450)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A36B2 #8EB236
analogous
#3650B2 #5A36B2 #9836B2
triadic
#5A36B2 #B25A36 #36B25A
tetradic
#5A36B2 #B23650 #8EB236 #36B298
square
#5A36B2 #B23650 #8EB236 #36B298
split-complementary
#5A36B2 #B29836 #50B236
monochromatic
#2B1A54 #422883 #5A36B2 #7A59CD #A088DB

Accessibility & contrast

On white

8.06
#5A36B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5A36B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A36B2
8.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A36B2#FFFFFF#000000##FFFFFF
##5A36B21.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#004DB0
Tritanopia (blue-blind)
#3D5670
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5a36b2;
/* rgb */ color: rgb(90, 54, 178);
/* oklch */ color: oklch(45.1% 0.185 290.3);
Tailwind
colors: {
  custom: {
    50: '#9170ca',
    500: '#5a36b2',
    950: '#000000',
  },
}
SCSS
$custom: #5a36b2;
$custom-light: #9170ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5a36b2",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 178
  },
  "hsl": {
    "h": 257.419,
    "s": 53.448,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45135,
    "c": 0.18476,
    "h": 290.3
  },
  "luminance": 0.08026
}

Semantic roles & 50–950 ramp

primary
#5A36B2
secondary
#B1C57F
accent
#DD4BB2
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5A36B2

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

Preview Lab → · Contrast checker → · Palette generator →

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