#5A36C8#5A36C8

#5A36C8 is a mid, highly saturated violet. Relative luminance 0.090; OKLCH L 47.1% C 0.211 H 286.5°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#5A36C8
RGBrgb(90, 54, 200)
HSLhsl(255, 57%, 50%)
HSVhsv(255, 73%, 78%)
CMYKcmyk(55%, 73%, 0%, 21.6%)
CIE-LABlab(35.95, 51.92, -70.22)
CIE-LCHlch(35.95, 87.33, 306.48°)
OKLaboklab(47.08% 0.0597 -0.202)
OKLCHoklch(47.08% 0.211 286.5)
XYZxyz(15.9578, 8.9812, 55.5251)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A36C8 #A4C836
analogous
#365BC8 #5A36C8 #A336C8
triadic
#5A36C8 #C85A36 #36C85A
tetradic
#5A36C8 #C8365B #A4C836 #36C8A3
square
#5A36C8 #C8365B #A4C836 #36C8A3
split-complementary
#5A36C8 #C8A336 #5BC836
monochromatic
#2F1C68 #442998 #5A36C8 #8166D6 #A996E3

Accessibility & contrast

On white

7.51
#5A36C8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5A36C8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A36C8
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A36C8#FFFFFF#000000##FFFFFF
##5A36C81.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CC
Deuteranopia (green-blind)
#0050C5
Tritanopia (blue-blind)
#295E7C
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a36c8;
/* rgb */ color: rgb(90, 54, 200);
/* oklch */ color: oklch(47.1% 0.211 286.5);
Tailwind
colors: {
  custom: {
    50: '#9471da',
    500: '#5a36c8',
    950: '#000000',
  },
}
SCSS
$custom: #5a36c8;
$custom-light: #9471da;
$custom-dark: #000000;
JSON
{
  "hex": "#5a36c8",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 200
  },
  "hsl": {
    "h": 254.795,
    "s": 57.48,
    "l": 49.804
  },
  "oklch": {
    "l": 0.4708,
    "c": 0.21067,
    "h": 286.5
  },
  "luminance": 0.08982
}

Semantic roles & 50–950 ramp

primary
#5A36C8
secondary
#BECE8C
accent
#E147BB
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A36C8

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

Preview Lab → · Contrast checker → · Palette generator →

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