#5B4EAE#5B4EAE

#5B4EAE is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.8% C 0.147 H 285.7°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#5B4EAE
RGBrgb(91, 78, 174)
HSLhsl(248, 38%, 49%)
HSVhsv(248, 55%, 68%)
CMYKcmyk(47.7%, 55.2%, 0%, 31.8%)
CIE-LABlab(39.12, 30.66, -49.78)
CIE-LCHlch(39.12, 58.47, 301.63°)
OKLaboklab(48.77% 0.04 -0.142)
OKLCHoklch(48.77% 0.147 285.7)
XYZxyz(14.6765, 10.7283, 41.3336)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4EAE #A1AE4E
analogous
#4E71AE #5B4EAE #8B4EAE
triadic
#5B4EAE #AE5B4E #4EAE5B
tetradic
#5B4EAE #AE4E71 #A1AE4E #4EAE8B
square
#5B4EAE #AE4E71 #A1AE4E #4EAE8B
split-complementary
#5B4EAE #AE8B4E #71AE4E
monochromatic
#2F2859 #453B84 #5B4EAE #8177C2 #A8A1D5

Accessibility & contrast

On white

6.68
#5B4EAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5B4EAE
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4EAE#FFFFFF#000000##FFFFFF
##5B4EAE1.006.683.156.68
#FFFFFF6.681.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185FB1
Deuteranopia (green-blind)
#1559AC
Tritanopia (blue-blind)
#3F6376
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5b4eae;
/* rgb */ color: rgb(91, 78, 174);
/* oklch */ color: oklch(48.8% 0.147 285.7);
Tailwind
colors: {
  custom: {
    50: '#8f80c7',
    500: '#5b4eae',
    950: '#000000',
  },
}
SCSS
$custom: #5b4eae;
$custom-light: #8f80c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4eae",
  "rgb": {
    "r": 91,
    "g": 78,
    "b": 174
  },
  "hsl": {
    "h": 248.125,
    "s": 38.095,
    "l": 49.412
  },
  "oklch": {
    "l": 0.48769,
    "c": 0.14749,
    "h": 285.7
  },
  "luminance": 0.10729
}

Semantic roles & 50–950 ramp

primary
#5B4EAE
secondary
#BCC296
accent
#CE5ABE
background
#F9F7FC
surface
#F1EEF8
border
#CBC9D1
text
#0D0A13
muted
#7E7C82

Preview Lab

Preview with #5B4EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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