#5B3EAE#5B3EAE

#5B3EAE is a mid, vivid violet. Relative luminance 0.087; OKLCH L 46.1% C 0.170 H 290.0°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#5B3EAE
RGBrgb(91, 62, 174)
HSLhsl(256, 47%, 46%)
HSVhsv(256, 64%, 68%)
CMYKcmyk(47.7%, 64.4%, 0%, 31.8%)
CIE-LABlab(35.45, 40.23, -55.72)
CIE-LCHlch(35.45, 68.73, 305.83°)
OKLaboklab(46.08% 0.0581 -0.1595)
OKLCHoklch(46.08% 0.17 290)
XYZxyz(13.6748, 8.7249, 40.9997)
Luminance0.0872 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3EAE #91AE3E
analogous
#3E59AE #5B3EAE #933EAE
triadic
#5B3EAE #AE5B3E #3EAE5B
tetradic
#5B3EAE #AE3E59 #91AE3E #3EAE93
square
#5B3EAE #AE3E59 #91AE3E #3EAE93
split-complementary
#5B3EAE #AE933E #59AE3E
monochromatic
#2C1E54 #432E81 #5B3EAE #7C62C7 #A28FD7

Accessibility & contrast

On white

7.65
#5B3EAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5B3EAE
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3EAE#FFFFFF#000000##FFFFFF
##5B3EAE1.007.652.747.65
#FFFFFF7.651.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B2
Deuteranopia (green-blind)
#0051AC
Tritanopia (blue-blind)
#405970
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5b3eae;
/* rgb */ color: rgb(91, 62, 174);
/* oklch */ color: oklch(46.1% 0.170 290.0);
Tailwind
colors: {
  custom: {
    50: '#9075c7',
    500: '#5b3eae',
    950: '#000000',
  },
}
SCSS
$custom: #5b3eae;
$custom-light: #9075c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3eae",
  "rgb": {
    "r": 91,
    "g": 62,
    "b": 174
  },
  "hsl": {
    "h": 255.536,
    "s": 47.458,
    "l": 46.275
  },
  "oklch": {
    "l": 0.46075,
    "c": 0.16971,
    "h": 290
  },
  "luminance": 0.08725
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5B3EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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