#5A36AF#5A36AF

#5A36AF is a dark, vivid violet. Relative luminance 0.079; OKLCH L 44.9% C 0.181 H 290.9°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#5A36AF
RGBrgb(90, 54, 175)
HSLhsl(258, 53%, 45%)
HSVhsv(258, 69%, 69%)
CMYKcmyk(48.6%, 69.1%, 0%, 31.4%)
CIE-LABlab(33.79, 44.79, -59.02)
CIE-LCHlch(33.79, 74.10, 307.20°)
OKLaboklab(44.88% 0.0647 -0.1692)
OKLCHoklch(44.88% 0.181 290.9)
XYZxyz(13.2713, 7.9066, 41.3760)
Luminance0.0791 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A36AF #8BAF36
analogous
#364FAF #5A36AF #9636AF
triadic
#5A36AF #AF5A36 #36AF5A
tetradic
#5A36AF #AF364F #8BAF36 #36AF96
square
#5A36AF #AF364F #8BAF36 #36AF96
split-complementary
#5A36AF #AF9636 #4FAF36
monochromatic
#2A1951 #422880 #5A36AF #7A57CB #9F86DA

Accessibility & contrast

On white

8.14
#5A36AF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#5A36AF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A36AF
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A36AF#FFFFFF#000000##FFFFFF
##5A36AF1.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B3
Deuteranopia (green-blind)
#004DAD
Tritanopia (blue-blind)
#3E546E
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #5a36af;
/* rgb */ color: rgb(90, 54, 175);
/* oklch */ color: oklch(44.9% 0.181 290.9);
Tailwind
colors: {
  custom: {
    50: '#9070c8',
    500: '#5a36af',
    950: '#000000',
  },
}
SCSS
$custom: #5a36af;
$custom-light: #9070c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a36af",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 175
  },
  "hsl": {
    "h": 257.851,
    "s": 52.838,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44879,
    "c": 0.18115,
    "h": 290.9
  },
  "luminance": 0.07907
}

Semantic roles & 50–950 ramp

primary
#5A36AF
secondary
#AFC37D
accent
#DC4CB1
background
#F9F6FC
surface
#F2ECF8
border
#CCC7D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5A36AF

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

Preview Lab → · Contrast checker → · Palette generator →

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