#5B3AAF#5B3AAF

#5B3AAF is a mid, vivid violet. Relative luminance 0.083; OKLCH L 45.6% C 0.176 H 290.7°. Best body text is #FFFFFF at 7.87:1 contrast (WCAG AA passes).

Color values

HEX#5B3AAF
RGBrgb(91, 58, 175)
HSLhsl(257, 50%, 46%)
HSVhsv(257, 67%, 69%)
CMYKcmyk(48%, 66.9%, 0%, 31.4%)
CIE-LABlab(34.69, 42.79, -57.55)
CIE-LCHlch(34.69, 71.71, 306.63°)
OKLaboklab(45.55% 0.0622 -0.1648)
OKLCHoklch(45.55% 0.176 290.7)
XYZxyz(13.5631, 8.3449, 41.4452)
Luminance0.0834 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3AAF #8EAF3A
analogous
#3A53AF #5B3AAF #953AAF
triadic
#5B3AAF #AF5B3A #3AAF5B
tetradic
#5B3AAF #AF3A53 #8EAF3A #3AAF95
square
#5B3AAF #AF3A53 #8EAF3A #3AAF95
split-complementary
#5B3AAF #AF953A #53AF3A
monochromatic
#2B1C53 #432B81 #5B3AAF #7B5DC9 #A18BD9

Accessibility & contrast

On white

7.87
#5B3AAF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5B3AAF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3AAF
7.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3AAF#FFFFFF#000000##FFFFFF
##5B3AAF1.007.872.677.87
#FFFFFF7.871.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B3
Deuteranopia (green-blind)
#004FAD
Tritanopia (blue-blind)
#40576F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5b3aaf;
/* rgb */ color: rgb(91, 58, 175);
/* oklch */ color: oklch(45.6% 0.176 290.7);
Tailwind
colors: {
  custom: {
    50: '#9172c8',
    500: '#5b3aaf',
    950: '#000000',
  },
}
SCSS
$custom: #5b3aaf;
$custom-light: #9172c8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3aaf",
  "rgb": {
    "r": 91,
    "g": 58,
    "b": 175
  },
  "hsl": {
    "h": 256.923,
    "s": 50.215,
    "l": 45.686
  },
  "oklch": {
    "l": 0.45552,
    "c": 0.17616,
    "h": 290.7
  },
  "luminance": 0.08345
}

Semantic roles & 50–950 ramp

primary
#5B3AAF
secondary
#B1C382
accent
#DA4EB2
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5B3AAF

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

Preview Lab → · Contrast checker → · Palette generator →

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