#5B3ABB#5B3ABB

#5B3ABB is a mid, vivid violet. Relative luminance 0.088; OKLCH L 46.6% C 0.191 H 288.4°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5B3ABB
RGBrgb(91, 58, 187)
HSLhsl(255, 53%, 48%)
HSVhsv(255, 69%, 73%)
CMYKcmyk(51.3%, 69%, 0%, 26.7%)
CIE-LABlab(35.67, 46.25, -63.06)
CIE-LCHlch(35.67, 78.20, 306.26°)
OKLaboklab(46.56% 0.0603 -0.181)
OKLCHoklch(46.56% 0.191 288.4)
XYZxyz(14.7945, 8.8374, 47.9303)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B3ABB #9ABB3A
analogous
#3A59BB #5B3ABB #9B3ABB
triadic
#5B3ABB #BB5B3A #3ABB5B
tetradic
#5B3ABB #BB3A59 #9ABB3A #3ABB9B
square
#5B3ABB #BB3A59 #9ABB3A #3ABB9B
split-complementary
#5B3ABB #BB9B3A #59BB3A
monochromatic
#2E1D5E #442C8C #5B3ABB #7F63CF #A592DD

Accessibility & contrast

On white

7.59
#5B3ABB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5B3ABB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5B3ABB
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B3ABB#FFFFFF#000000##FFFFFF
##5B3ABB1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BF
Deuteranopia (green-blind)
#0051B8
Tritanopia (blue-blind)
#385B76
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5b3abb;
/* rgb */ color: rgb(91, 58, 187);
/* oklch */ color: oklch(46.6% 0.191 288.4);
Tailwind
colors: {
  custom: {
    50: '#9273d0',
    500: '#5b3abb',
    950: '#000000',
  },
}
SCSS
$custom: #5b3abb;
$custom-light: #9273d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b3abb",
  "rgb": {
    "r": 91,
    "g": 58,
    "b": 187
  },
  "hsl": {
    "h": 255.349,
    "s": 52.653,
    "l": 48.039
  },
  "oklch": {
    "l": 0.46559,
    "c": 0.1908,
    "h": 288.4
  },
  "luminance": 0.08838
}

Semantic roles & 50–950 ramp

primary
#5B3ABB
secondary
#B8C888
accent
#DC4CB7
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0814
muted
#7E7B82

Preview Lab

Preview with #5B3ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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