#5B3EAD#5B3EAD

#5B3EAD is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.0% C 0.168 H 290.2°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#5B3EAD
RGBrgb(91, 62, 173)
HSLhsl(256, 47%, 46%)
HSVhsv(256, 64%, 68%)
CMYKcmyk(47.4%, 64.2%, 0%, 32.2%)
CIE-LABlab(35.37, 39.94, -55.25)
CIE-LCHlch(35.37, 68.17, 305.87°)
OKLaboklab(46% 0.0582 -0.1581)
OKLCHoklch(46% 0.168 290.2)
XYZxyz(13.5777, 8.6860, 40.4882)
Luminance0.0869 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3EAD #90AD3E
analogous
#3E58AD #5B3EAD #923EAD
triadic
#5B3EAD #AD5B3E #3EAD5B
tetradic
#5B3EAD #AD3E58 #90AD3E #3EAD92
square
#5B3EAD #AD3E58 #90AD3E #3EAD92
split-complementary
#5B3EAD #AD923E #58AD3E
monochromatic
#2C1E53 #432E80 #5B3EAD #7C62C7 #A18FD7

Accessibility & contrast

On white

7.67
#5B3EAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5B3EAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3EAD
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3EAD#FFFFFF#000000##FFFFFF
##5B3EAD1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B0
Deuteranopia (green-blind)
#0051AB
Tritanopia (blue-blind)
#415870
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b3ead;
/* rgb */ color: rgb(91, 62, 173);
/* oklch */ color: oklch(46.0% 0.168 290.2);
Tailwind
colors: {
  custom: {
    50: '#9075c6',
    500: '#5b3ead',
    950: '#000000',
  },
}
SCSS
$custom: #5b3ead;
$custom-light: #9075c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3ead",
  "rgb": {
    "r": 91,
    "g": 62,
    "b": 173
  },
  "hsl": {
    "h": 255.676,
    "s": 47.234,
    "l": 46.078
  },
  "oklch": {
    "l": 0.45996,
    "c": 0.16845,
    "h": 290.2
  },
  "luminance": 0.08687
}

Semantic roles & 50–950 ramp

primary
#5B3EAD
secondary
#B2C285
accent
#D751B4
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0813
muted
#7E7B82

Preview Lab

Preview with #5B3EAD

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

Preview Lab → · Contrast checker → · Palette generator →

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