#5A36CA#5A36CA

#5A36CA is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.3% C 0.213 H 286.1°. Best body text is #FFFFFF at 7.46:1 contrast (WCAG AA passes).

Color values

HEX#5A36CA
RGBrgb(90, 54, 202)
HSLhsl(255, 58%, 50%)
HSVhsv(255, 73%, 79%)
CMYKcmyk(55.4%, 73.3%, 0%, 20.8%)
CIE-LABlab(36.13, 52.49, -71.09)
CIE-LCHlch(36.13, 88.37, 306.44°)
OKLaboklab(47.26% 0.0592 -0.2046)
OKLCHoklch(47.26% 0.213 286.1)
XYZxyz(16.1931, 9.0754, 56.7641)
Luminance0.0908 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A36CA #A6CA36
analogous
#365CCA #5A36CA #A436CA
triadic
#5A36CA #CA5A36 #36CA5A
tetradic
#5A36CA #CA365C #A6CA36 #36CAA4
square
#5A36CA #CA365C #A6CA36 #36CAA4
split-complementary
#5A36CA #CAA436 #5CCA36
monochromatic
#2F1C6A #44299A #5A36CA #8266D7 #AA97E4

Accessibility & contrast

On white

7.46
#5A36CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5A36CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A36CA
7.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A36CA#FFFFFF#000000##FFFFFF
##5A36CA1.007.462.827.46
#FFFFFF7.461.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CE
Deuteranopia (green-blind)
#0051C7
Tritanopia (blue-blind)
#275F7D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a36ca;
/* rgb */ color: rgb(90, 54, 202);
/* oklch */ color: oklch(47.3% 0.213 286.1);
Tailwind
colors: {
  custom: {
    50: '#9471db',
    500: '#5a36ca',
    950: '#000000',
  },
}
SCSS
$custom: #5a36ca;
$custom-light: #9471db;
$custom-dark: #000000;
JSON
{
  "hex": "#5a36ca",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 202
  },
  "hsl": {
    "h": 254.595,
    "s": 58.268,
    "l": 50.196
  },
  "oklch": {
    "l": 0.47263,
    "c": 0.21298,
    "h": 286.1
  },
  "luminance": 0.09076
}

Semantic roles & 50–950 ramp

primary
#5A36CA
secondary
#BFCF8D
accent
#E146BC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A36CA

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

Preview Lab → · Contrast checker → · Palette generator →

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