#5B4EBD#5B4EBD

#5B4EBD is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.9% C 0.168 H 283.8°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#5B4EBD
RGBrgb(91, 78, 189)
HSLhsl(247, 46%, 52%)
HSVhsv(247, 59%, 74%)
CMYKcmyk(51.9%, 58.7%, 0%, 25.9%)
CIE-LABlab(40.16, 35.29, -56.93)
CIE-LCHlch(40.16, 66.98, 301.79°)
OKLaboklab(49.87% 0.0401 -0.163)
OKLCHoklch(49.87% 0.168 283.8)
XYZxyz(16.2213, 11.3462, 49.4695)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4EBD #B0BD4E
analogous
#4E79BD #5B4EBD #934EBD
triadic
#5B4EBD #BD5B4E #4EBD5B
tetradic
#5B4EBD #BD4E79 #B0BD4E #4EBD93
square
#5B4EBD #BD4E79 #B0BD4E #4EBD93
split-complementary
#5B4EBD #BD934E #79BD4E
monochromatic
#2F2769 #433896 #5B4EBD #847BCE #AEA7DE

Accessibility & contrast

On white

6.42
#5B4EBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5B4EBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4EBD
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4EBD#FFFFFF#000000##FFFFFF
##5B4EBD1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C1
Deuteranopia (green-blind)
#005BBB
Tritanopia (blue-blind)
#34687E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5b4ebd;
/* rgb */ color: rgb(91, 78, 189);
/* oklch */ color: oklch(49.9% 0.168 283.8);
Tailwind
colors: {
  custom: {
    50: '#9180d2',
    500: '#5b4ebd',
    950: '#000000',
  },
}
SCSS
$custom: #5b4ebd;
$custom-light: #9180d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4ebd",
  "rgb": {
    "r": 91,
    "g": 78,
    "b": 189
  },
  "hsl": {
    "h": 247.027,
    "s": 45.679,
    "l": 52.353
  },
  "oklch": {
    "l": 0.49868,
    "c": 0.16784,
    "h": 283.8
  },
  "luminance": 0.11347
}

Semantic roles & 50–950 ramp

primary
#5B4EBD
secondary
#C6CC9B
accent
#D552C6
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5B4EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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