#5C36D5#5C36D5

#5C36D5 is a mid, highly saturated violet. Relative luminance 0.097; OKLCH L 48.5% C 0.225 H 285.3°. Best body text is #FFFFFF at 7.13:1 contrast (WCAG AA passes).

Color values

HEX#5C36D5
RGBrgb(92, 54, 213)
HSLhsl(254, 65%, 52%)
HSVhsv(254, 75%, 84%)
CMYKcmyk(56.8%, 74.6%, 0%, 16.5%)
CIE-LABlab(37.33, 55.87, -75.48)
CIE-LCHlch(37.33, 93.91, 306.51°)
OKLaboklab(48.46% 0.0594 -0.2174)
OKLCHoklch(48.46% 0.225 285.3)
XYZxyz(17.7394, 9.7167, 63.8786)
Luminance0.0972 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C36D5 #AFD536
analogous
#365FD5 #5C36D5 #AC36D5
triadic
#5C36D5 #D55C36 #36D55C
tetradic
#5C36D5 #D5365F #AFD536 #36D5AC
square
#5C36D5 #D5365F #AFD536 #36D5AC
split-complementary
#5C36D5 #D5AC36 #5FD536
monochromatic
#301978 #4424AA #5C36D5 #8569E0 #AE9BEA

Accessibility & contrast

On white

7.13
#5C36D5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#5C36D5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C36D5
7.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C36D5#FFFFFF#000000##FFFFFF
##5C36D51.007.132.947.13
#FFFFFF7.131.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CDA
Deuteranopia (green-blind)
#0053D2
Tritanopia (blue-blind)
#1D6383
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5c36d5;
/* rgb */ color: rgb(92, 54, 213);
/* oklch */ color: oklch(48.5% 0.225 285.3);
Tailwind
colors: {
  custom: {
    50: '#9771e3',
    500: '#5c36d5',
    950: '#000000',
  },
}
SCSS
$custom: #5c36d5;
$custom-light: #9771e3;
$custom-dark: #000000;
JSON
{
  "hex": "#5c36d5",
  "rgb": {
    "r": 92,
    "g": 54,
    "b": 213
  },
  "hsl": {
    "h": 254.34,
    "s": 65.432,
    "l": 52.353
  },
  "oklch": {
    "l": 0.48461,
    "c": 0.22536,
    "h": 285.3
  },
  "luminance": 0.09718
}

Semantic roles & 50–950 ramp

primary
#5C36D5
secondary
#C5D691
accent
#E83FC0
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5C36D5

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

Preview Lab → · Contrast checker → · Palette generator →

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