#5B3EB5#5B3EB5

#5B3EB5 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.6% C 0.179 H 288.7°. Best body text is #FFFFFF at 7.50:1 contrast (WCAG AA passes).

Color values

HEX#5B3EB5
RGBrgb(91, 62, 181)
HSLhsl(255, 49%, 48%)
HSVhsv(255, 66%, 71%)
CMYKcmyk(49.7%, 65.7%, 0%, 29%)
CIE-LABlab(35.99, 42.28, -58.99)
CIE-LCHlch(35.99, 72.58, 305.64°)
OKLaboklab(46.64% 0.0573 -0.1691)
OKLCHoklch(46.64% 0.179 288.7)
XYZxyz(14.3751, 9.0050, 44.6878)
Luminance0.0901 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3EB5 #98B53E
analogous
#3E5CB5 #5B3EB5 #963EB5
triadic
#5B3EB5 #B55B3E #3EB55B
tetradic
#5B3EB5 #B53E5C #98B53E #3EB596
square
#5B3EB5 #B53E5C #98B53E #3EB596
split-complementary
#5B3EB5 #B5963E #5CB53E
monochromatic
#2D1F5A #442E87 #5B3EB5 #7E66CA #A593DA

Accessibility & contrast

On white

7.50
#5B3EB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5B3EB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3EB5
7.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3EB5#FFFFFF#000000##FFFFFF
##5B3EB51.007.502.807.50
#FFFFFF7.501.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B9
Deuteranopia (green-blind)
#0052B3
Tritanopia (blue-blind)
#3C5B74
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5b3eb5;
/* rgb */ color: rgb(91, 62, 181);
/* oklch */ color: oklch(46.6% 0.179 288.7);
Tailwind
colors: {
  custom: {
    50: '#9175cc',
    500: '#5b3eb5',
    950: '#000000',
  },
}
SCSS
$custom: #5b3eb5;
$custom-light: #9175cc;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3eb5",
  "rgb": {
    "r": 91,
    "g": 62,
    "b": 181
  },
  "hsl": {
    "h": 254.622,
    "s": 48.971,
    "l": 47.647
  },
  "oklch": {
    "l": 0.4664,
    "c": 0.17852,
    "h": 288.7
  },
  "luminance": 0.09006
}

Semantic roles & 50–950 ramp

primary
#5B3EB5
secondary
#B7C589
accent
#D94FB7
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0813
muted
#7E7B82

Preview Lab

Preview with #5B3EB5

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

Preview Lab → · Contrast checker → · Palette generator →

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