#5B4AAC#5B4AAC

#5B4AAC is a mid, vivid violet. Relative luminance 0.101; OKLCH L 47.9% C 0.150 H 287.3°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#5B4AAC
RGBrgb(91, 74, 172)
HSLhsl(250, 40%, 48%)
HSVhsv(250, 57%, 67%)
CMYKcmyk(47.1%, 57%, 0%, 32.5%)
CIE-LABlab(38.02, 32.51, -50.37)
CIE-LCHlch(38.02, 59.95, 302.84°)
OKLaboklab(47.91% 0.0447 -0.1437)
OKLCHoklch(47.91% 0.15 287.3)
XYZxyz(14.2074, 10.0997, 40.2226)
Luminance0.1010 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4AAC #9BAC4A
analogous
#4A6AAC #5B4AAC #8C4AAC
triadic
#5B4AAC #AC5B4A #4AAC5B
tetradic
#5B4AAC #AC4A6A #9BAC4A #4AAC8C
square
#5B4AAC #AC4A6A #9BAC4A #4AAC8C
split-complementary
#5B4AAC #AC8C4A #6AAC4A
monochromatic
#2E2556 #443881 #5B4AAC #7F71C2 #A69CD4

Accessibility & contrast

On white

6.95
#5B4AAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#5B4AAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4AAC
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4AAC#FFFFFF#000000##FFFFFF
##5B4AAC1.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5CAF
Deuteranopia (green-blind)
#0B57AA
Tritanopia (blue-blind)
#416074
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5b4aac;
/* rgb */ color: rgb(91, 74, 172);
/* oklch */ color: oklch(47.9% 0.150 287.3);
Tailwind
colors: {
  custom: {
    50: '#8f7dc5',
    500: '#5b4aac',
    950: '#000000',
  },
}
SCSS
$custom: #5b4aac;
$custom-light: #8f7dc5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4aac",
  "rgb": {
    "r": 91,
    "g": 74,
    "b": 172
  },
  "hsl": {
    "h": 250.408,
    "s": 39.837,
    "l": 48.235
  },
  "oklch": {
    "l": 0.47912,
    "c": 0.15048,
    "h": 287.3
  },
  "luminance": 0.101
}

Semantic roles & 50–950 ramp

primary
#5B4AAC
secondary
#B9C191
accent
#D058BB
background
#F9F7FC
surface
#F1EEF8
border
#CBC9D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5B4AAC

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

Preview Lab → · Contrast checker → · Palette generator →

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