#5B36CC#5B36CC

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

Color values

HEX#5B36CC
RGBrgb(91, 54, 204)
HSLhsl(255, 60%, 51%)
HSVhsv(255, 74%, 80%)
CMYKcmyk(55.4%, 73.5%, 0%, 20%)
CIE-LABlab(36.41, 53.20, -71.79)
CIE-LCHlch(36.41, 89.35, 306.54°)
OKLaboklab(47.54% 0.0602 -0.2066)
OKLCHoklch(47.54% 0.215 286.2)
XYZxyz(16.5294, 9.2212, 58.0239)
Luminance0.0922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B36CC #A7CC36
analogous
#365CCC #5B36CC #A636CC
triadic
#5B36CC #CC5B36 #36CC5B
tetradic
#5B36CC #CC365C #A7CC36 #36CCA6
square
#5B36CC #CC365C #A7CC36 #36CCA6
split-complementary
#5B36CC #CCA636 #5CCC36
monochromatic
#2F1B6C #45289D #5B36CC #8367D8 #AB98E5

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##5B36CC#FFFFFF#000000##FFFFFF
##5B36CC1.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)
#0059D0
Deuteranopia (green-blind)
#0051C9
Tritanopia (blue-blind)
#275F7E
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b36cc;
/* rgb */ color: rgb(91, 54, 204);
/* oklch */ color: oklch(47.5% 0.215 286.2);
Tailwind
colors: {
  custom: {
    50: '#9571dd',
    500: '#5b36cc',
    950: '#000000',
  },
}
SCSS
$custom: #5b36cc;
$custom-light: #9571dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b36cc",
  "rgb": {
    "r": 91,
    "g": 54,
    "b": 204
  },
  "hsl": {
    "h": 254.8,
    "s": 59.524,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47537,
    "c": 0.2152,
    "h": 286.2
  },
  "luminance": 0.09222
}

Semantic roles & 50–950 ramp

primary
#5B36CC
secondary
#C0D08E
accent
#E345BC
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5B36CC

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

Preview Lab → · Contrast checker → · Palette generator →

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