#5B3CD2#5B3CD2

#5B3CD2 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 48.9% C 0.216 H 284.6°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#5B3CD2
RGBrgb(91, 60, 210)
HSLhsl(252, 63%, 53%)
HSVhsv(252, 71%, 82%)
CMYKcmyk(56.7%, 71.4%, 0%, 17.6%)
CIE-LABlab(38.04, 51.86, -72.59)
CIE-LCHlch(38.04, 89.21, 305.54°)
OKLaboklab(48.85% 0.0543 -0.209)
OKLCHoklch(48.85% 0.216 284.6)
XYZxyz(17.5596, 10.1079, 61.9860)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3CD2 #B3D23C
analogous
#3C68D2 #5B3CD2 #A63CD2
triadic
#5B3CD2 #D25B3C #3CD25B
tetradic
#5B3CD2 #D23C68 #B3D23C #3CD2A6
square
#5B3CD2 #D23C68 #B3D23C #3CD2A6
split-complementary
#5B3CD2 #D2A63C #68D23C
monochromatic
#2F1C78 #4227AA #5B3CD2 #856EDD #AF9FE9

Accessibility & contrast

On white

6.95
#5B3CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5B3CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B3CD2
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3CD2#FFFFFF#000000##FFFFFF
##5B3CD21.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ED6
Deuteranopia (green-blind)
#0055CF
Tritanopia (blue-blind)
#1E6583
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5b3cd2;
/* rgb */ color: rgb(91, 60, 210);
/* oklch */ color: oklch(48.9% 0.216 284.6);
Tailwind
colors: {
  custom: {
    50: '#9675e1',
    500: '#5b3cd2',
    950: '#000000',
  },
}
SCSS
$custom: #5b3cd2;
$custom-light: #9675e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3cd2",
  "rgb": {
    "r": 91,
    "g": 60,
    "b": 210
  },
  "hsl": {
    "h": 252.4,
    "s": 62.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.48854,
    "c": 0.21592,
    "h": 284.6
  },
  "luminance": 0.10109
}

Semantic roles & 50–950 ramp

primary
#5B3CD2
secondary
#C8D594
accent
#E642C4
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0815
muted
#7E7B83

Preview Lab

Preview with #5B3CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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