#5B4EA2#5B4EA2

#5B4EA2 is a mid, vivid blue. Relative luminance 0.103; OKLCH L 47.9% C 0.131 H 287.5°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#5B4EA2
RGBrgb(91, 78, 162)
HSLhsl(249, 35%, 47%)
HSVhsv(249, 52%, 64%)
CMYKcmyk(43.8%, 51.9%, 0%, 36.5%)
CIE-LABlab(38.34, 27.02, -43.89)
CIE-LCHlch(38.34, 51.54, 301.62°)
OKLaboklab(47.94% 0.0394 -0.1246)
OKLCHoklch(47.94% 0.131 287.5)
XYZxyz(13.5585, 10.2811, 35.4455)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4EA2 #95A24E
analogous
#4E6BA2 #5B4EA2 #854EA2
triadic
#5B4EA2 #A25B4E #4EA25B
tetradic
#5B4EA2 #A24E6B #95A24E #4EA285
square
#5B4EA2 #A24E6B #95A24E #4EA285
split-complementary
#5B4EA2 #A2854E #6BA24E
monochromatic
#2D264F #443A79 #5B4EA2 #7D72BB #A39BCF

Accessibility & contrast

On white

6.87
#5B4EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5B4EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4EA2
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4EA2#FFFFFF#000000##FFFFFF
##5B4EA21.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295CA5
Deuteranopia (green-blind)
#2858A0
Tritanopia (blue-blind)
#466070
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5b4ea2;
/* rgb */ color: rgb(91, 78, 162);
/* oklch */ color: oklch(47.9% 0.131 287.5);
Tailwind
colors: {
  custom: {
    50: '#8e80be',
    500: '#5b4ea2',
    950: '#000000',
  },
}
SCSS
$custom: #5b4ea2;
$custom-light: #8e80be;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4ea2",
  "rgb": {
    "r": 91,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 249.286,
    "s": 35,
    "l": 47.059
  },
  "oklch": {
    "l": 0.47941,
    "c": 0.13071,
    "h": 287.5
  },
  "luminance": 0.10282
}

Semantic roles & 50–950 ramp

primary
#5B4EA2
secondary
#B5BC90
accent
#CB5DBA
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0D0A12
muted
#7D7C81

Preview Lab

Preview with #5B4EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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