#5B3CC1#5B3CC1

#5B3CC1 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.4% C 0.196 H 287.1°. Best body text is #FFFFFF at 7.34:1 contrast (WCAG AA passes).

Color values

HEX#5B3CC1
RGBrgb(91, 60, 193)
HSLhsl(254, 53%, 50%)
HSVhsv(254, 69%, 76%)
CMYKcmyk(52.8%, 68.9%, 0%, 24.3%)
CIE-LABlab(36.57, 46.91, -65.12)
CIE-LCHlch(36.57, 80.25, 305.77°)
OKLaboklab(47.36% 0.0575 -0.1871)
OKLCHoklch(47.36% 0.196 287.1)
XYZxyz(15.5530, 9.3053, 51.4183)
Luminance0.0931 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3CC1 #A2C13C
analogous
#3C60C1 #5B3CC1 #9E3CC1
triadic
#5B3CC1 #C15B3C #3CC15B
tetradic
#5B3CC1 #C13C60 #A2C13C #3CC19E
square
#5B3CC1 #C13C60 #A2C13C #3CC19E
split-complementary
#5B3CC1 #C19E3C #60C13C
monochromatic
#2F1F64 #452D92 #5B3CC1 #826AD1 #A998DF

Accessibility & contrast

On white

7.34
#5B3CC1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5B3CC1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3CC1
7.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3CC1#FFFFFF#000000##FFFFFF
##5B3CC11.007.342.867.34
#FFFFFF7.341.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C5
Deuteranopia (green-blind)
#0052BE
Tritanopia (blue-blind)
#335E7A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b3cc1;
/* rgb */ color: rgb(91, 60, 193);
/* oklch */ color: oklch(47.4% 0.196 287.1);
Tailwind
colors: {
  custom: {
    50: '#9374d5',
    500: '#5b3cc1',
    950: '#000000',
  },
}
SCSS
$custom: #5b3cc1;
$custom-light: #9374d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3cc1",
  "rgb": {
    "r": 91,
    "g": 60,
    "b": 193
  },
  "hsl": {
    "h": 253.985,
    "s": 52.569,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47355,
    "c": 0.1957,
    "h": 287.1
  },
  "luminance": 0.09306
}

Semantic roles & 50–950 ramp

primary
#5B3CC1
secondary
#BDCB8E
accent
#DC4CBA
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B3CC1

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

Preview Lab → · Contrast checker → · Palette generator →

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