#5B4BB7#5B4BB7

#5B4BB7 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.9% C 0.164 H 285.4°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#5B4BB7
RGBrgb(91, 75, 183)
HSLhsl(249, 43%, 51%)
HSVhsv(249, 59%, 72%)
CMYKcmyk(50.3%, 59%, 0%, 28.2%)
CIE-LABlab(39.03, 35.25, -55.24)
CIE-LCHlch(39.03, 65.53, 302.54°)
OKLaboklab(48.9% 0.0434 -0.158)
OKLCHoklch(48.9% 0.164 285.4)
XYZxyz(15.3752, 10.6744, 46.0408)
Luminance0.1067 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4BB7 #A7B74B
analogous
#4B71B7 #5B4BB7 #914BB7
triadic
#5B4BB7 #B75B4B #4BB75B
tetradic
#5B4BB7 #B74B71 #A7B74B #4BB791
square
#5B4BB7 #B74B71 #A7B74B #4BB791
split-complementary
#5B4BB7 #B7914B #71B74B
monochromatic
#2F2761 #45388D #5B4BB7 #8377C8 #ABA2DA

Accessibility & contrast

On white

6.70
#5B4BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5B4BB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4BB7
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4BB7#FFFFFF#000000##FFFFFF
##5B4BB71.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#0059B5
Tritanopia (blue-blind)
#39647A
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5b4bb7;
/* rgb */ color: rgb(91, 75, 183);
/* oklch */ color: oklch(48.9% 0.164 285.4);
Tailwind
colors: {
  custom: {
    50: '#917ecd',
    500: '#5b4bb7',
    950: '#000000',
  },
}
SCSS
$custom: #5b4bb7;
$custom-light: #917ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4bb7",
  "rgb": {
    "r": 91,
    "g": 75,
    "b": 183
  },
  "hsl": {
    "h": 248.889,
    "s": 42.857,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48899,
    "c": 0.16389,
    "h": 285.4
  },
  "luminance": 0.10675
}

Semantic roles & 50–950 ramp

primary
#5B4BB7
secondary
#C0C797
accent
#D355C0
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #5B4BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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