#5A36CC#5A36CC

#5A36CC is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.4% C 0.215 H 285.8°. Best body text is #FFFFFF at 7.41:1 contrast (WCAG AA passes).

Color values

HEX#5A36CC
RGBrgb(90, 54, 204)
HSLhsl(254, 60%, 51%)
HSVhsv(254, 74%, 80%)
CMYKcmyk(55.9%, 73.5%, 0%, 20%)
CIE-LABlab(36.31, 53.06, -71.95)
CIE-LCHlch(36.31, 89.40, 306.41°)
OKLaboklab(47.45% 0.0588 -0.2071)
OKLCHoklch(47.45% 0.215 285.8)
XYZxyz(16.4314, 9.1707, 58.0193)
Luminance0.0917 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A36CC #A8CC36
analogous
#365DCC #5A36CC #A536CC
triadic
#5A36CC #CC5A36 #36CC5A
tetradic
#5A36CC #CC365D #A8CC36 #36CCA5
square
#5A36CC #CC365D #A8CC36 #36CCA5
split-complementary
#5A36CC #CCA536 #5DCC36
monochromatic
#2F1B6C #44289D #5A36CC #8267D8 #AA98E5

Accessibility & contrast

On white

7.41
#5A36CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#5A36CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A36CC
7.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A36CC#FFFFFF#000000##FFFFFF
##5A36CC1.007.412.837.41
#FFFFFF7.411.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D0
Deuteranopia (green-blind)
#0051C9
Tritanopia (blue-blind)
#245F7E
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5a36cc;
/* rgb */ color: rgb(90, 54, 204);
/* oklch */ color: oklch(47.4% 0.215 285.8);
Tailwind
colors: {
  custom: {
    50: '#9571dd',
    500: '#5a36cc',
    950: '#000000',
  },
}
SCSS
$custom: #5a36cc;
$custom-light: #9571dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a36cc",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 204
  },
  "hsl": {
    "h": 254.4,
    "s": 59.524,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47447,
    "c": 0.21528,
    "h": 285.8
  },
  "luminance": 0.09172
}

Semantic roles & 50–950 ramp

primary
#5A36CC
secondary
#C0D08E
accent
#E345BD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A36CC

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

Preview Lab → · Contrast checker → · Palette generator →

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