#5B36DB#5B36DB

#5B36DB is a mid, highly saturated violet. Relative luminance 0.100; OKLCH L 48.9% C 0.232 H 284.1°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#5B36DB
RGBrgb(91, 54, 219)
HSLhsl(253, 70%, 54%)
HSVhsv(253, 75%, 86%)
CMYKcmyk(58.4%, 75.3%, 0%, 14.1%)
CIE-LABlab(37.80, 57.43, -78.16)
CIE-LCHlch(37.80, 97.00, 306.31°)
OKLaboklab(48.94% 0.0565 -0.2252)
OKLCHoklch(48.94% 0.232 284.1)
XYZxyz(18.4158, 9.9758, 67.9592)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B36DB #B6DB36
analogous
#3663DB #5B36DB #AE36DB
triadic
#5B36DB #DB5B36 #36DB5B
tetradic
#5B36DB #DB3663 #B6DB36 #36DBAE
square
#5B36DB #DB3663 #B6DB36 #36DBAE
split-complementary
#5B36DB #DBAE36 #63DB36
monochromatic
#2E1780 #4120B4 #5B36DB #856AE4 #B09EEE

Accessibility & contrast

On white

7.01
#5B36DB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#5B36DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B36DB
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B36DB#FFFFFF#000000##FFFFFF
##5B36DB1.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EE0
Deuteranopia (green-blind)
#0054D8
Tritanopia (blue-blind)
#066587
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5b36db;
/* rgb */ color: rgb(91, 54, 219);
/* oklch */ color: oklch(48.9% 0.232 284.1);
Tailwind
colors: {
  custom: {
    50: '#9772e7',
    500: '#5b36db',
    950: '#000000',
  },
}
SCSS
$custom: #5b36db;
$custom-light: #9772e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b36db",
  "rgb": {
    "r": 91,
    "g": 54,
    "b": 219
  },
  "hsl": {
    "h": 253.455,
    "s": 69.62,
    "l": 53.529
  },
  "oklch": {
    "l": 0.48938,
    "c": 0.23222,
    "h": 284.1
  },
  "luminance": 0.09977
}

Semantic roles & 50–950 ramp

primary
#5B36DB
secondary
#CADA93
accent
#EC3BC5
background
#FAF7FE
surface
#F4EDFD
border
#CEC8D5
text
#0F0816
muted
#7F7B84

Preview Lab

Preview with #5B36DB

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

Preview Lab → · Contrast checker → · Palette generator →

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