#5B4AC8#5B4AC8

#5B4AC8 is a mid, vivid blue. Relative luminance 0.113; OKLCH L 50.1% C 0.187 H 283.4°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#5B4AC8
RGBrgb(91, 74, 200)
HSLhsl(248, 53%, 54%)
HSVhsv(248, 63%, 78%)
CMYKcmyk(54.5%, 63%, 0%, 21.6%)
CIE-LABlab(40.07, 41.07, -63.49)
CIE-LCHlch(40.07, 75.61, 302.90°)
OKLaboklab(50.06% 0.0436 -0.1823)
OKLCHoklch(50.06% 0.187 283.4)
XYZxyz(17.1853, 11.2908, 55.9062)
Luminance0.1129 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4AC8 #B7C84A
analogous
#4A78C8 #5B4AC8 #9A4AC8
triadic
#5B4AC8 #C85B4A #4AC85B
tetradic
#5B4AC8 #C84A78 #B7C84A #4AC89A
square
#5B4AC8 #C84A78 #B7C84A #4AC89A
split-complementary
#5B4AC8 #C89A4A #78C84A
monochromatic
#2E2374 #4132A3 #5B4AC8 #8679D6 #B0A8E5

Accessibility & contrast

On white

6.44
#5B4AC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#5B4AC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4AC8
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4AC8#FFFFFF#000000##FFFFFF
##5B4AC81.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CC
Deuteranopia (green-blind)
#005AC5
Tritanopia (blue-blind)
#2A6982
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5b4ac8;
/* rgb */ color: rgb(91, 74, 200);
/* oklch */ color: oklch(50.1% 0.187 283.4);
Tailwind
colors: {
  custom: {
    50: '#937dda',
    500: '#5b4ac8',
    950: '#000000',
  },
}
SCSS
$custom: #5b4ac8;
$custom-light: #937dda;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4ac8",
  "rgb": {
    "r": 91,
    "g": 74,
    "b": 200
  },
  "hsl": {
    "h": 248.095,
    "s": 53.39,
    "l": 53.725
  },
  "oklch": {
    "l": 0.50059,
    "c": 0.18741,
    "h": 283.4
  },
  "luminance": 0.11292
}

Semantic roles & 50–950 ramp

primary
#5B4AC8
secondary
#CBD29C
accent
#DD4BC9
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5B4AC8

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

Preview Lab → · Contrast checker → · Palette generator →

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