#5A36AA#5A36AA

#5A36AA is a dark, vivid violet. Relative luminance 0.077; OKLCH L 44.5% C 0.175 H 292.0°. Best body text is #FFFFFF at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#5A36AA
RGBrgb(90, 54, 170)
HSLhsl(259, 52%, 44%)
HSVhsv(259, 68%, 67%)
CMYKcmyk(47.1%, 68.2%, 0%, 33.3%)
CIE-LABlab(33.38, 43.37, -56.70)
CIE-LCHlch(33.38, 71.39, 307.41°)
OKLaboklab(44.46% 0.0655 -0.1624)
OKLCHoklch(44.46% 0.175 292)
XYZxyz(12.7893, 7.7138, 38.8375)
Luminance0.0771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A36AA #86AA36
analogous
#364CAA #5A36AA #9436AA
triadic
#5A36AA #AA5A36 #36AA5A
tetradic
#5A36AA #AA364C #86AA36 #36AA94
square
#5A36AA #AA364C #86AA36 #36AA94
split-complementary
#5A36AA #AA9436 #4CAA36
monochromatic
#29184D #41277C #5A36AA #7954C9 #9D83D8

Accessibility & contrast

On white

8.26
#5A36AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#5A36AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A36AA
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A36AA#FFFFFF#000000##FFFFFF
##5A36AA1.008.262.548.26
#FFFFFF8.261.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AE
Deuteranopia (green-blind)
#004CA8
Tritanopia (blue-blind)
#42536B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5a36aa;
/* rgb */ color: rgb(90, 54, 170);
/* oklch */ color: oklch(44.5% 0.175 292.0);
Tailwind
colors: {
  custom: {
    50: '#9070c4',
    500: '#5a36aa',
    950: '#000000',
  },
}
SCSS
$custom: #5a36aa;
$custom-light: #9070c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a36aa",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 170
  },
  "hsl": {
    "h": 258.621,
    "s": 51.786,
    "l": 43.922
  },
  "oklch": {
    "l": 0.4446,
    "c": 0.1751,
    "h": 292
  },
  "luminance": 0.07714
}

Semantic roles & 50–950 ramp

primary
#5A36AA
secondary
#ABC17B
accent
#DB4DAF
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5A36AA

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

Preview Lab → · Contrast checker → · Palette generator →

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