#5A36CF#5A36CF

#5A36CF is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.7% C 0.219 H 285.4°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#5A36CF
RGBrgb(90, 54, 207)
HSLhsl(254, 61%, 51%)
HSVhsv(254, 74%, 81%)
CMYKcmyk(56.5%, 73.9%, 0%, 18.8%)
CIE-LABlab(36.59, 53.91, -73.24)
CIE-LCHlch(36.59, 90.94, 306.36°)
OKLaboklab(47.72% 0.058 -0.2109)
OKLCHoklch(47.72% 0.219 285.4)
XYZxyz(16.7947, 9.3160, 59.9326)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A36CF #ABCF36
analogous
#365ECF #5A36CF #A736CF
triadic
#5A36CF #CF5A36 #36CF5A
tetradic
#5A36CF #CF365E #ABCF36 #36CFA7
square
#5A36CF #CF365E #ABCF36 #36CFA7
split-complementary
#5A36CF #CFA736 #5ECF36
monochromatic
#2F1B70 #4327A1 #5A36CF #8367DB #AB99E7

Accessibility & contrast

On white

7.33
#5A36CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5A36CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5A36CF
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A36CF#FFFFFF#000000##FFFFFF
##5A36CF1.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD3
Deuteranopia (green-blind)
#0051CC
Tritanopia (blue-blind)
#1F6180
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5a36cf;
/* rgb */ color: rgb(90, 54, 207);
/* oklch */ color: oklch(47.7% 0.219 285.4);
Tailwind
colors: {
  custom: {
    50: '#9571df',
    500: '#5a36cf',
    950: '#000000',
  },
}
SCSS
$custom: #5a36cf;
$custom-light: #9571df;
$custom-dark: #000000;
JSON
{
  "hex": "#5a36cf",
  "rgb": {
    "r": 90,
    "g": 54,
    "b": 207
  },
  "hsl": {
    "h": 254.118,
    "s": 61.446,
    "l": 51.176
  },
  "oklch": {
    "l": 0.47724,
    "c": 0.21873,
    "h": 285.4
  },
  "luminance": 0.09317
}

Semantic roles & 50–950 ramp

primary
#5A36CF
secondary
#C2D28F
accent
#E543BF
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5A36CF

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

Preview Lab → · Contrast checker → · Palette generator →

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