#5B3CC2#5B3CC2

#5B3CC2 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.4% C 0.197 H 286.9°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#5B3CC2
RGBrgb(91, 60, 194)
HSLhsl(254, 53%, 50%)
HSVhsv(254, 69%, 76%)
CMYKcmyk(53.1%, 69.1%, 0%, 23.9%)
CIE-LABlab(36.65, 47.20, -65.56)
CIE-LCHlch(36.65, 80.78, 305.75°)
OKLaboklab(47.44% 0.0573 -0.1884)
OKLCHoklch(47.44% 0.197 286.9)
XYZxyz(15.6650, 9.3501, 52.0078)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3CC2 #A3C23C
analogous
#3C60C2 #5B3CC2 #9E3CC2
triadic
#5B3CC2 #C25B3C #3CC25B
tetradic
#5B3CC2 #C23C60 #A3C23C #3CC29E
square
#5B3CC2 #C23C60 #A3C23C #3CC29E
split-complementary
#5B3CC2 #C29E3C #60C23C
monochromatic
#2F1F65 #452E93 #5B3CC2 #826AD1 #A999DF

Accessibility & contrast

On white

7.32
#5B3CC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5B3CC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3CC2
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3CC2#FFFFFF#000000##FFFFFF
##5B3CC21.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C6
Deuteranopia (green-blind)
#0052BF
Tritanopia (blue-blind)
#325F7A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b3cc2;
/* rgb */ color: rgb(91, 60, 194);
/* oklch */ color: oklch(47.4% 0.197 286.9);
Tailwind
colors: {
  custom: {
    50: '#9374d5',
    500: '#5b3cc2',
    950: '#000000',
  },
}
SCSS
$custom: #5b3cc2;
$custom-light: #9374d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3cc2",
  "rgb": {
    "r": 91,
    "g": 60,
    "b": 194
  },
  "hsl": {
    "h": 253.881,
    "s": 52.756,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47442,
    "c": 0.1969,
    "h": 286.9
  },
  "luminance": 0.09351
}

Semantic roles & 50–950 ramp

primary
#5B3CC2
secondary
#BDCB8F
accent
#DC4CBB
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B3CC2

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

Preview Lab → · Contrast checker → · Palette generator →

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