#5A36BD#5A36BD

#5A36BD is a mid, vivid violet. Relative luminance 0.085; OKLCH L 46.1% C 0.198 H 288.3°. Best body text is #FFFFFF at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#5A36BD
RGBrgb(90, 54, 189)
HSLhsl(256, 56%, 48%)
HSVhsv(256, 71%, 74%)
CMYKcmyk(52.4%, 71.4%, 0%, 25.9%)
CIE-LABlab(34.97, 48.78, -65.37)
CIE-LCHlch(34.97, 81.57, 306.73°)
OKLaboklab(46.09% 0.0621 -0.1878)
OKLCHoklch(46.09% 0.198 288.3)
XYZxyz(14.7182, 8.4854, 48.9966)
Luminance0.0849 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A36BD #99BD36
analogous
#3655BD #5A36BD #9E36BD
triadic
#5A36BD #BD5A36 #36BD5A
tetradic
#5A36BD #BD3655 #99BD36 #36BD9E
square
#5A36BD #BD3655 #99BD36 #36BD9E
split-complementary
#5A36BD #BD9E36 #55BD36
monochromatic
#2D1B5E #43288D #5A36BD #7D5FD1 #A48FDF

Accessibility & contrast

On white

7.79
#5A36BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5A36BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A36BD
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A36BD#FFFFFF#000000##FFFFFF
##5A36BD1.007.792.707.79
#FFFFFF7.791.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C1
Deuteranopia (green-blind)
#004FBA
Tritanopia (blue-blind)
#345A76
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5a36bd;
/* rgb */ color: rgb(90, 54, 189);
/* oklch */ color: oklch(46.1% 0.198 288.3);
Tailwind
colors: {
  custom: {
    50: '#9270d2',
    500: '#5a36bd',
    950: '#000000',
  },
}
SCSS
$custom: #5a36bd;
$custom-light: #9270d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a36bd",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 189
  },
  "hsl": {
    "h": 256,
    "s": 55.556,
    "l": 47.647
  },
  "oklch": {
    "l": 0.46092,
    "c": 0.19783,
    "h": 288.3
  },
  "luminance": 0.08486
}

Semantic roles & 50–950 ramp

primary
#5A36BD
secondary
#B7C985
accent
#DF49B7
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5A36BD

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

Preview Lab → · Contrast checker → · Palette generator →

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