#5B4ABC#5B4ABC

#5B4ABC is a mid, vivid blue. Relative luminance 0.108; OKLCH L 49.1% C 0.172 H 284.9°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#5B4ABC
RGBrgb(91, 74, 188)
HSLhsl(249, 46%, 51%)
HSVhsv(249, 61%, 74%)
CMYKcmyk(51.6%, 60.6%, 0%, 26.3%)
CIE-LABlab(39.16, 37.38, -57.96)
CIE-LCHlch(39.16, 68.97, 302.82°)
OKLaboklab(49.11% 0.0443 -0.166)
OKLCHoklch(49.11% 0.172 284.9)
XYZxyz(15.8375, 10.7517, 48.8080)
Luminance0.1075 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4ABC #ABBC4A
analogous
#4A72BC #5B4ABC #944ABC
triadic
#5B4ABC #BC5B4A #4ABC5B
tetradic
#5B4ABC #BC4A72 #ABBC4A #4ABC94
square
#5B4ABC #BC4A72 #ABBC4A #4ABC94
split-complementary
#5B4ABC #BC944A #72BC4A
monochromatic
#2F2666 #443693 #5B4ABC #8377CD #ACA3DD

Accessibility & contrast

On white

6.67
#5B4ABC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#5B4ABC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4ABC
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4ABC#FFFFFF#000000##FFFFFF
##5B4ABC1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C0
Deuteranopia (green-blind)
#0059BA
Tritanopia (blue-blind)
#35657C
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5b4abc;
/* rgb */ color: rgb(91, 74, 188);
/* oklch */ color: oklch(49.1% 0.172 284.9);
Tailwind
colors: {
  custom: {
    50: '#917dd1',
    500: '#5b4abc',
    950: '#000000',
  },
}
SCSS
$custom: #5b4abc;
$custom-light: #917dd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4abc",
  "rgb": {
    "r": 91,
    "g": 74,
    "b": 188
  },
  "hsl": {
    "h": 248.947,
    "s": 45.968,
    "l": 51.373
  },
  "oklch": {
    "l": 0.49111,
    "c": 0.17186,
    "h": 284.9
  },
  "luminance": 0.10753
}

Semantic roles & 50–950 ramp

primary
#5B4ABC
secondary
#C3CA98
accent
#D652C2
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0A14
muted
#7E7C82

Preview Lab

Preview with #5B4ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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