#5A36BA#5A36BA

#5A36BA is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.8% C 0.194 H 288.8°. Best body text is #FFFFFF at 7.86:1 contrast (WCAG AA passes).

Color values

HEX#5A36BA
RGBrgb(90, 54, 186)
HSLhsl(256, 55%, 47%)
HSVhsv(256, 71%, 73%)
CMYKcmyk(51.6%, 71%, 0%, 27.1%)
CIE-LABlab(34.71, 47.93, -64.03)
CIE-LCHlch(34.71, 79.98, 306.81°)
OKLaboklab(45.83% 0.0627 -0.1839)
OKLCHoklch(45.83% 0.194 288.8)
XYZxyz(14.3960, 8.3565, 47.2993)
Luminance0.0836 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A36BA #96BA36
analogous
#3654BA #5A36BA #9C36BA
triadic
#5A36BA #BA5A36 #36BA5A
tetradic
#5A36BA #BA3654 #96BA36 #36BA9C
square
#5A36BA #BA3654 #96BA36 #36BA9C
split-complementary
#5A36BA #BA9C36 #54BA36
monochromatic
#2C1A5B #43288B #5A36BA #7D5DD0 #A38DDE

Accessibility & contrast

On white

7.86
#5A36BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5A36BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A36BA
7.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A36BA#FFFFFF#000000##FFFFFF
##5A36BA1.007.862.677.86
#FFFFFF7.861.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BE
Deuteranopia (green-blind)
#004EB7
Tritanopia (blue-blind)
#375974
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a36ba;
/* rgb */ color: rgb(90, 54, 186);
/* oklch */ color: oklch(45.8% 0.194 288.8);
Tailwind
colors: {
  custom: {
    50: '#9270d0',
    500: '#5a36ba',
    950: '#000000',
  },
}
SCSS
$custom: #5a36ba;
$custom-light: #9270d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a36ba",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 186
  },
  "hsl": {
    "h": 256.364,
    "s": 55,
    "l": 47.059
  },
  "oklch": {
    "l": 0.45827,
    "c": 0.19429,
    "h": 288.8
  },
  "luminance": 0.08357
}

Semantic roles & 50–950 ramp

primary
#5A36BA
secondary
#B5C884
accent
#DE49B6
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5A36BA

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

Preview Lab → · Contrast checker → · Palette generator →

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