#5A36CD#5A36CD

#5A36CD is a mid, highly saturated violet. Relative luminance 0.092; OKLCH L 47.5% C 0.216 H 285.7°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#5A36CD
RGBrgb(90, 54, 205)
HSLhsl(254, 60%, 51%)
HSVhsv(254, 74%, 80%)
CMYKcmyk(56.1%, 73.7%, 0%, 19.6%)
CIE-LABlab(36.40, 53.34, -72.38)
CIE-LCHlch(36.40, 89.92, 306.39°)
OKLaboklab(47.54% 0.0585 -0.2084)
OKLCHoklch(47.54% 0.216 285.7)
XYZxyz(16.5517, 9.2188, 58.6530)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A36CD #A9CD36
analogous
#365DCD #5A36CD #A636CD
triadic
#5A36CD #CD5A36 #36CD5A
tetradic
#5A36CD #CD365D #A9CD36 #36CDA6
square
#5A36CD #CD365D #A9CD36 #36CDA6
split-complementary
#5A36CD #CDA636 #5DCD36
monochromatic
#2F1B6D #44279E #5A36CD #8267D9 #AA98E5

Accessibility & contrast

On white

7.38
#5A36CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5A36CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A36CD
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A36CD#FFFFFF#000000##FFFFFF
##5A36CD1.007.382.847.38
#FFFFFF7.381.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD1
Deuteranopia (green-blind)
#0051CA
Tritanopia (blue-blind)
#22607F
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a36cd;
/* rgb */ color: rgb(90, 54, 205);
/* oklch */ color: oklch(47.5% 0.216 285.7);
Tailwind
colors: {
  custom: {
    50: '#9571dd',
    500: '#5a36cd',
    950: '#000000',
  },
}
SCSS
$custom: #5a36cd;
$custom-light: #9571dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5a36cd",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 205
  },
  "hsl": {
    "h": 254.305,
    "s": 60.159,
    "l": 50.784
  },
  "oklch": {
    "l": 0.47539,
    "c": 0.21644,
    "h": 285.7
  },
  "luminance": 0.0922
}

Semantic roles & 50–950 ramp

primary
#5A36CD
secondary
#C1D18E
accent
#E344BD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5A36CD

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

Preview Lab → · Contrast checker → · Palette generator →

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