#5B4AAA#5B4AAA

#5B4AAA is a mid, vivid violet. Relative luminance 0.100; OKLCH L 47.8% C 0.148 H 287.6°. Best body text is #FFFFFF at 6.99:1 contrast (WCAG AA passes).

Color values

HEX#5B4AAA
RGBrgb(91, 74, 170)
HSLhsl(251, 39%, 48%)
HSVhsv(251, 56%, 67%)
CMYKcmyk(46.5%, 56.5%, 0%, 33.3%)
CIE-LABlab(37.88, 31.90, -49.40)
CIE-LCHlch(37.88, 58.80, 302.86°)
OKLaboklab(47.77% 0.0447 -0.1408)
OKLCHoklch(47.77% 0.148 287.6)
XYZxyz(14.0168, 10.0234, 39.2186)
Luminance0.1002 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4AAA #99AA4A
analogous
#4A69AA #5B4AAA #8B4AAA
triadic
#5B4AAA #AA5B4A #4AAA5B
tetradic
#5B4AAA #AA4A69 #99AA4A #4AAA8B
square
#5B4AAA #AA4A69 #99AA4A #4AAA8B
split-complementary
#5B4AAA #AA8B4A #69AA4A
monochromatic
#2D2555 #44377F #5B4AAA #7F70C1 #A59BD3

Accessibility & contrast

On white

6.99
#5B4AAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#5B4AAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4AAA
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4AAA#FFFFFF#000000##FFFFFF
##5B4AAA1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#115BAD
Deuteranopia (green-blind)
#1157A8
Tritanopia (blue-blind)
#425F73
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5b4aaa;
/* rgb */ color: rgb(91, 74, 170);
/* oklch */ color: oklch(47.8% 0.148 287.6);
Tailwind
colors: {
  custom: {
    50: '#8f7dc4',
    500: '#5b4aaa',
    950: '#000000',
  },
}
SCSS
$custom: #5b4aaa;
$custom-light: #8f7dc4;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4aaa",
  "rgb": {
    "r": 91,
    "g": 74,
    "b": 170
  },
  "hsl": {
    "h": 250.625,
    "s": 39.344,
    "l": 47.843
  },
  "oklch": {
    "l": 0.47768,
    "c": 0.14776,
    "h": 287.6
  },
  "luminance": 0.10024
}

Semantic roles & 50–950 ramp

primary
#5B4AAA
secondary
#B7C090
accent
#CF59BA
background
#F9F7FC
surface
#F1EEF8
border
#CBC9D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5B4AAA

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

Preview Lab → · Contrast checker → · Palette generator →

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