#5B3CC6#5B3CC6

#5B3CC6 is a mid, highly saturated violet. Relative luminance 0.095; OKLCH L 47.8% C 0.202 H 286.3°. Best body text is #FFFFFF at 7.22:1 contrast (WCAG AA passes).

Color values

HEX#5B3CC6
RGBrgb(91, 60, 198)
HSLhsl(253, 55%, 51%)
HSVhsv(253, 70%, 78%)
CMYKcmyk(54%, 69.7%, 0%, 22.4%)
CIE-LABlab(36.99, 48.36, -67.34)
CIE-LCHlch(36.99, 82.91, 305.68°)
OKLaboklab(47.79% 0.0566 -0.1936)
OKLCHoklch(47.79% 0.202 286.3)
XYZxyz(16.1202, 9.5322, 54.4056)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3CC6 #A7C63C
analogous
#3C62C6 #5B3CC6 #A03CC6
triadic
#5B3CC6 #C65B3C #3CC65B
tetradic
#5B3CC6 #C63C62 #A7C63C #3CC6A0
square
#5B3CC6 #C63C62 #A7C63C #3CC6A0
split-complementary
#5B3CC6 #C6A03C #62C63C
monochromatic
#2F1F69 #452D98 #5B3CC6 #836BD4 #AB9BE2

Accessibility & contrast

On white

7.22
#5B3CC6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#5B3CC6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3CC6
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3CC6#FFFFFF#000000##FFFFFF
##5B3CC61.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BCA
Deuteranopia (green-blind)
#0053C3
Tritanopia (blue-blind)
#2E607D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5b3cc6;
/* rgb */ color: rgb(91, 60, 198);
/* oklch */ color: oklch(47.8% 0.202 286.3);
Tailwind
colors: {
  custom: {
    50: '#9474d8',
    500: '#5b3cc6',
    950: '#000000',
  },
}
SCSS
$custom: #5b3cc6;
$custom-light: #9474d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3cc6",
  "rgb": {
    "r": 91,
    "g": 60,
    "b": 198
  },
  "hsl": {
    "h": 253.478,
    "s": 54.762,
    "l": 50.588
  },
  "oklch": {
    "l": 0.47789,
    "c": 0.20171,
    "h": 286.3
  },
  "luminance": 0.09533
}

Semantic roles & 50–950 ramp

primary
#5B3CC6
secondary
#C0CE90
accent
#DE4ABD
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5B3CC6

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

Preview Lab → · Contrast checker → · Palette generator →

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