#5B36D4#5B36D4

#5B36D4 is a mid, highly saturated violet. Relative luminance 0.096; OKLCH L 48.3% C 0.224 H 285.1°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#5B36D4
RGBrgb(91, 54, 212)
HSLhsl(254, 65%, 52%)
HSVhsv(254, 75%, 83%)
CMYKcmyk(57.1%, 74.5%, 0%, 16.9%)
CIE-LABlab(37.14, 55.46, -75.22)
CIE-LCHlch(37.14, 93.45, 306.40°)
OKLaboklab(48.28% 0.0583 -0.2166)
OKLCHoklch(48.28% 0.224 285.1)
XYZxyz(17.5136, 9.6149, 63.2076)
Luminance0.0962 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B36D4 #AFD436
analogous
#3660D4 #5B36D4 #AA36D4
triadic
#5B36D4 #D45B36 #36D45B
tetradic
#5B36D4 #D43660 #AFD436 #36D4AA
square
#5B36D4 #D43660 #AFD436 #36D4AA
split-complementary
#5B36D4 #D4AA36 #60D436
monochromatic
#2F1976 #4324A9 #5B36D4 #8468DF #AD9BEA

Accessibility & contrast

On white

7.18
#5B36D4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5B36D4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B36D4
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B36D4#FFFFFF#000000##FFFFFF
##5B36D41.007.182.927.18
#FFFFFF7.181.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CD9
Deuteranopia (green-blind)
#0052D1
Tritanopia (blue-blind)
#1B6283
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b36d4;
/* rgb */ color: rgb(91, 54, 212);
/* oklch */ color: oklch(48.3% 0.224 285.1);
Tailwind
colors: {
  custom: {
    50: '#9671e2',
    500: '#5b36d4',
    950: '#000000',
  },
}
SCSS
$custom: #5b36d4;
$custom-light: #9671e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b36d4",
  "rgb": {
    "r": 91,
    "g": 54,
    "b": 212
  },
  "hsl": {
    "h": 254.051,
    "s": 64.754,
    "l": 52.157
  },
  "oklch": {
    "l": 0.48279,
    "c": 0.22432,
    "h": 285.1
  },
  "luminance": 0.09616
}

Semantic roles & 50–950 ramp

primary
#5B36D4
secondary
#C5D590
accent
#E840C0
background
#FAF7FE
surface
#F3EDFC
border
#CDC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5B36D4

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

Preview Lab → · Contrast checker → · Palette generator →

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