#5B3CA9#5B3CA9

#5B3CA9 is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.4% C 0.166 H 291.5°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#5B3CA9
RGBrgb(91, 60, 169)
HSLhsl(257, 48%, 45%)
HSVhsv(257, 64%, 66%)
CMYKcmyk(46.2%, 64.5%, 0%, 33.7%)
CIE-LABlab(34.64, 39.93, -54.05)
CIE-LCHlch(34.64, 67.20, 306.46°)
OKLaboklab(45.37% 0.0607 -0.1545)
OKLCHoklch(45.37% 0.166 291.5)
XYZxyz(13.0897, 8.3200, 38.4447)
Luminance0.0832 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3CA9 #8AA93C
analogous
#3C54A9 #5B3CA9 #913CA9
triadic
#5B3CA9 #A95B3C #3CA95B
tetradic
#5B3CA9 #A93C54 #8AA93C #3CA991
square
#5B3CA9 #A93C54 #8AA93C #3CA991
split-complementary
#5B3CA9 #A9913C #54A93C
monochromatic
#2A1C4F #432C7C #5B3CA9 #7B5DC5 #9F8AD5

Accessibility & contrast

On white

7.88
#5B3CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5B3CA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3CA9
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3CA9#FFFFFF#000000##FFFFFF
##5B3CA91.007.882.667.88
#FFFFFF7.881.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053AC
Deuteranopia (green-blind)
#004FA7
Tritanopia (blue-blind)
#43566D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5b3ca9;
/* rgb */ color: rgb(91, 60, 169);
/* oklch */ color: oklch(45.4% 0.166 291.5);
Tailwind
colors: {
  custom: {
    50: '#9073c3',
    500: '#5b3ca9',
    950: '#000000',
  },
}
SCSS
$custom: #5b3ca9;
$custom-light: #9073c3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3ca9",
  "rgb": {
    "r": 91,
    "g": 60,
    "b": 169
  },
  "hsl": {
    "h": 257.064,
    "s": 47.598,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45369,
    "c": 0.16606,
    "h": 291.5
  },
  "luminance": 0.0832
}

Semantic roles & 50–950 ramp

primary
#5B3CA9
secondary
#AEC081
accent
#D751B1
background
#F9F7FC
surface
#F1EDF8
border
#CBC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5B3CA9

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

Preview Lab → · Contrast checker → · Palette generator →

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