#5A36D3#5A36D3

#5A36D3 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 48.1% C 0.223 H 284.8°. Best body text is #FFFFFF at 7.23:1 contrast (WCAG AA passes).

Color values

HEX#5A36D3
RGBrgb(90, 54, 211)
HSLhsl(254, 64%, 52%)
HSVhsv(254, 74%, 83%)
CMYKcmyk(57.3%, 74.4%, 0%, 17.3%)
CIE-LABlab(36.96, 55.05, -74.95)
CIE-LCHlch(36.96, 92.99, 306.30°)
OKLaboklab(48.1% 0.0571 -0.2159)
OKLCHoklch(48.1% 0.223 284.8)
XYZxyz(17.2899, 9.5141, 62.5407)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A36D3 #AFD336
analogous
#3661D3 #5A36D3 #A936D3
triadic
#5A36D3 #D35A36 #36D35A
tetradic
#5A36D3 #D33661 #AFD336 #36D3A9
square
#5A36D3 #D33661 #AFD336 #36D3A9
split-complementary
#5A36D3 #D3A936 #61D336
monochromatic
#2F1A75 #4325A7 #5A36D3 #8368DE #AC9AE9

Accessibility & contrast

On white

7.23
#5A36D3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#5A36D3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A36D3
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A36D3#FFFFFF#000000##FFFFFF
##5A36D31.007.232.907.23
#FFFFFF7.231.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BD7
Deuteranopia (green-blind)
#0052D0
Tritanopia (blue-blind)
#186282
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5a36d3;
/* rgb */ color: rgb(90, 54, 211);
/* oklch */ color: oklch(48.1% 0.223 284.8);
Tailwind
colors: {
  custom: {
    50: '#9671e2',
    500: '#5a36d3',
    950: '#000000',
  },
}
SCSS
$custom: #5a36d3;
$custom-light: #9671e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a36d3",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 211
  },
  "hsl": {
    "h": 253.758,
    "s": 64.082,
    "l": 51.961
  },
  "oklch": {
    "l": 0.48097,
    "c": 0.2233,
    "h": 284.8
  },
  "luminance": 0.09515
}

Semantic roles & 50–950 ramp

primary
#5A36D3
secondary
#C5D590
accent
#E741C1
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0F0816
muted
#7E7B84

Preview Lab

Preview with #5A36D3

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

Preview Lab → · Contrast checker → · Palette generator →

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