#5B3BAD#5B3BAD

#5B3BAD is a mid, vivid violet. Relative luminance 0.084; OKLCH L 45.5% C 0.172 H 290.9°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#5B3BAD
RGBrgb(91, 59, 173)
HSLhsl(257, 49%, 45%)
HSVhsv(257, 66%, 68%)
CMYKcmyk(47.4%, 65.9%, 0%, 32.2%)
CIE-LABlab(34.74, 41.65, -56.28)
CIE-LCHlch(34.74, 70.01, 306.51°)
OKLaboklab(45.54% 0.0614 -0.1611)
OKLCHoklch(45.54% 0.172 290.9)
XYZxyz(13.4190, 8.3687, 40.4353)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3BAD #8DAD3B
analogous
#3B54AD #5B3BAD #943BAD
triadic
#5B3BAD #AD5B3B #3BAD5B
tetradic
#5B3BAD #AD3B54 #8DAD3B #3BAD94
square
#5B3BAD #AD3B54 #8DAD3B #3BAD94
split-complementary
#5B3BAD #AD943B #54AD3B
monochromatic
#2B1C52 #432B7F #5B3BAD #7B5DC8 #A08BD7

Accessibility & contrast

On white

7.85
#5B3BAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B3BAD
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3BAD#FFFFFF#000000##FFFFFF
##5B3BAD1.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054B1
Deuteranopia (green-blind)
#004FAB
Tritanopia (blue-blind)
#41576F
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5b3bad;
/* rgb */ color: rgb(91, 59, 173);
/* oklch */ color: oklch(45.5% 0.172 290.9);
Tailwind
colors: {
  custom: {
    50: '#9073c6',
    500: '#5b3bad',
    950: '#000000',
  },
}
SCSS
$custom: #5b3bad;
$custom-light: #9073c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3bad",
  "rgb": {
    "r": 91,
    "g": 59,
    "b": 173
  },
  "hsl": {
    "h": 256.842,
    "s": 49.138,
    "l": 45.49
  },
  "oklch": {
    "l": 0.45537,
    "c": 0.17239,
    "h": 290.9
  },
  "luminance": 0.08369
}

Semantic roles & 50–950 ramp

primary
#5B3BAD
secondary
#B0C282
accent
#D94FB2
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5B3BAD

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

Preview Lab → · Contrast checker → · Palette generator →

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