#5A36BB#5A36BB

#5A36BB is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.9% C 0.195 H 288.6°. Best body text is #FFFFFF at 7.84:1 contrast (WCAG AA passes).

Color values

HEX#5A36BB
RGBrgb(90, 54, 187)
HSLhsl(256, 55%, 47%)
HSVhsv(256, 71%, 73%)
CMYKcmyk(51.9%, 71.1%, 0%, 26.7%)
CIE-LABlab(34.80, 48.21, -64.48)
CIE-LCHlch(34.80, 80.51, 306.79°)
OKLaboklab(45.92% 0.0625 -0.1852)
OKLCHoklch(45.92% 0.195 288.6)
XYZxyz(14.5026, 8.3992, 47.8611)
Luminance0.0840 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A36BB #97BB36
analogous
#3654BB #5A36BB #9D36BB
triadic
#5A36BB #BB5A36 #36BB5A
tetradic
#5A36BB #BB3654 #97BB36 #36BB9D
square
#5A36BB #BB3654 #97BB36 #36BB9D
split-complementary
#5A36BB #BB9D36 #54BB36
monochromatic
#2C1B5C #43288C #5A36BB #7D5ED0 #A38DDE

Accessibility & contrast

On white

7.84
#5A36BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5A36BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A36BB
7.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A36BB#FFFFFF#000000##FFFFFF
##5A36BB1.007.842.687.84
#FFFFFF7.841.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055BF
Deuteranopia (green-blind)
#004EB8
Tritanopia (blue-blind)
#365975
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a36bb;
/* rgb */ color: rgb(90, 54, 187);
/* oklch */ color: oklch(45.9% 0.195 288.6);
Tailwind
colors: {
  custom: {
    50: '#9270d1',
    500: '#5a36bb',
    950: '#000000',
  },
}
SCSS
$custom: #5a36bb;
$custom-light: #9270d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a36bb",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 187
  },
  "hsl": {
    "h": 256.241,
    "s": 55.187,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45915,
    "c": 0.19547,
    "h": 288.6
  },
  "luminance": 0.084
}

Semantic roles & 50–950 ramp

primary
#5A36BB
secondary
#B6C984
accent
#DF49B6
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5A36BB

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

Preview Lab → · Contrast checker → · Palette generator →

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