#5A36AB#5A36AB

#5A36AB is a dark, vivid violet. Relative luminance 0.078; OKLCH L 44.5% C 0.176 H 291.8°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#5A36AB
RGBrgb(90, 54, 171)
HSLhsl(258, 52%, 44%)
HSVhsv(258, 68%, 67%)
CMYKcmyk(47.4%, 68.4%, 0%, 32.9%)
CIE-LABlab(33.46, 43.66, -57.17)
CIE-LCHlch(33.46, 71.93, 307.37°)
OKLaboklab(44.54% 0.0654 -0.1637)
OKLCHoklch(44.54% 0.176 291.8)
XYZxyz(12.8842, 7.7518, 39.3376)
Luminance0.0775 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A36AB #87AB36
analogous
#364CAB #5A36AB #9536AB
triadic
#5A36AB #AB5A36 #36AB5A
tetradic
#5A36AB #AB364C #87AB36 #36AB95
square
#5A36AB #AB364C #87AB36 #36AB95
split-complementary
#5A36AB #AB9536 #4CAB36
monochromatic
#29194E #42277C #5A36AB #7955C9 #9D83D8

Accessibility & contrast

On white

8.23
#5A36AB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#5A36AB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A36AB
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A36AB#FFFFFF#000000##FFFFFF
##5A36AB1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AF
Deuteranopia (green-blind)
#004CA9
Tritanopia (blue-blind)
#41536C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5a36ab;
/* rgb */ color: rgb(90, 54, 171);
/* oklch */ color: oklch(44.5% 0.176 291.8);
Tailwind
colors: {
  custom: {
    50: '#9070c5',
    500: '#5a36ab',
    950: '#000000',
  },
}
SCSS
$custom: #5a36ab;
$custom-light: #9070c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a36ab",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 171
  },
  "hsl": {
    "h": 258.462,
    "s": 52,
    "l": 44.118
  },
  "oklch": {
    "l": 0.44543,
    "c": 0.17631,
    "h": 291.8
  },
  "luminance": 0.07752
}

Semantic roles & 50–950 ramp

primary
#5A36AB
secondary
#ACC27B
accent
#DB4CAF
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5A36AB

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

Preview Lab → · Contrast checker → · Palette generator →

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