#5B4BAE#5B4BAE

#5B4BAE is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.2% C 0.152 H 286.7°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#5B4BAE
RGBrgb(91, 75, 174)
HSLhsl(250, 40%, 49%)
HSVhsv(250, 57%, 68%)
CMYKcmyk(47.7%, 56.9%, 0%, 31.8%)
CIE-LABlab(38.40, 32.50, -50.95)
CIE-LCHlch(38.40, 60.43, 302.54°)
OKLaboklab(48.23% 0.0435 -0.1454)
OKLCHoklch(48.23% 0.152 286.7)
XYZxyz(14.4682, 10.3117, 41.2642)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4BAE #9EAE4B
analogous
#4B6DAE #5B4BAE #8D4BAE
triadic
#5B4BAE #AE5B4B #4BAE5B
tetradic
#5B4BAE #AE4B6D #9EAE4B #4BAE8D
square
#5B4BAE #AE4B6D #9EAE4B #4BAE8D
split-complementary
#5B4BAE #AE8D4B #6DAE4B
monochromatic
#2E2658 #453983 #5B4BAE #8073C3 #A79ED5

Accessibility & contrast

On white

6.86
#5B4BAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5B4BAE
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4BAE#FFFFFF#000000##FFFFFF
##5B4BAE1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B5DB1
Deuteranopia (green-blind)
#0858AC
Tritanopia (blue-blind)
#3F6175
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5b4bae;
/* rgb */ color: rgb(91, 75, 174);
/* oklch */ color: oklch(48.2% 0.152 286.7);
Tailwind
colors: {
  custom: {
    50: '#8f7ec7',
    500: '#5b4bae',
    950: '#000000',
  },
}
SCSS
$custom: #5b4bae;
$custom-light: #8f7ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4bae",
  "rgb": {
    "r": 91,
    "g": 75,
    "b": 174
  },
  "hsl": {
    "h": 249.697,
    "s": 39.759,
    "l": 48.824
  },
  "oklch": {
    "l": 0.48234,
    "c": 0.15177,
    "h": 286.7
  },
  "luminance": 0.10312
}

Semantic roles & 50–950 ramp

primary
#5B4BAE
secondary
#BAC293
accent
#D058BC
background
#F9F7FC
surface
#F1EEF8
border
#CBC9D1
text
#0D0A13
muted
#7E7C82

Preview Lab

Preview with #5B4BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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