#5B3BC3#5B3BC3

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

Color values

HEX#5B3BC3
RGBrgb(91, 59, 195)
HSLhsl(254, 54%, 50%)
HSVhsv(254, 70%, 76%)
CMYKcmyk(53.3%, 69.7%, 0%, 23.5%)
CIE-LABlab(36.54, 48.03, -66.33)
CIE-LCHlch(36.54, 81.89, 305.91°)
OKLaboklab(47.39% 0.058 -0.1906)
OKLCHoklch(47.39% 0.199 286.9)
XYZxyz(15.7257, 9.2914, 52.5840)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3BC3 #A3C33B
analogous
#3B5FC3 #5B3BC3 #9F3BC3
triadic
#5B3BC3 #C35B3B #3BC35B
tetradic
#5B3BC3 #C33B5F #A3C33B #3BC39F
square
#5B3BC3 #C33B5F #A3C33B #3BC39F
split-complementary
#5B3BC3 #C39F3B #5FC33B
monochromatic
#2F1F65 #452D94 #5B3BC3 #8269D2 #A998E0

Accessibility & contrast

On white

7.35
#5B3BC3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B3BC3
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3BC3#FFFFFF#000000##FFFFFF
##5B3BC31.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C7
Deuteranopia (green-blind)
#0052C0
Tritanopia (blue-blind)
#315E7B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5b3bc3;
/* rgb */ color: rgb(91, 59, 195);
/* oklch */ color: oklch(47.4% 0.199 286.9);
Tailwind
colors: {
  custom: {
    50: '#9374d6',
    500: '#5b3bc3',
    950: '#000000',
  },
}
SCSS
$custom: #5b3bc3;
$custom-light: #9374d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3bc3",
  "rgb": {
    "r": 91,
    "g": 59,
    "b": 195
  },
  "hsl": {
    "h": 254.118,
    "s": 53.543,
    "l": 49.804
  },
  "oklch": {
    "l": 0.47389,
    "c": 0.19926,
    "h": 286.9
  },
  "luminance": 0.09292
}

Semantic roles & 50–950 ramp

primary
#5B3BC3
secondary
#BDCC8E
accent
#DD4BBB
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5B3BC3

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

Preview Lab → · Contrast checker → · Palette generator →

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