#5B4DC4#5B4DC4

#5B4DC4 is a mid, vivid blue. Relative luminance 0.115; OKLCH L 50.2% C 0.178 H 283.2°. Best body text is #FFFFFF at 6.36:1 contrast (WCAG AA passes).

Color values

HEX#5B4DC4
RGBrgb(91, 77, 196)
HSLhsl(247, 50%, 54%)
HSVhsv(247, 61%, 77%)
CMYKcmyk(53.6%, 60.7%, 0%, 23.1%)
CIE-LABlab(40.44, 38.06, -60.56)
CIE-LCHlch(40.44, 71.52, 302.15°)
OKLaboklab(50.24% 0.0409 -0.1737)
OKLCHoklch(50.24% 0.178 283.2)
XYZxyz(16.9290, 11.5165, 53.5447)
Luminance0.1152 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4DC4 #B6C44D
analogous
#4D7AC4 #5B4DC4 #964DC4
triadic
#5B4DC4 #C45B4D #4DC45B
tetradic
#5B4DC4 #C44D7A #B6C44D #4DC496
square
#5B4DC4 #C44D7A #B6C44D #4DC496
split-complementary
#5B4DC4 #C4964D #7AC44D
monochromatic
#2E2571 #41359F #5B4DC4 #857BD3 #B0A9E2

Accessibility & contrast

On white

6.36
#5B4DC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.30
#5B4DC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4DC4
6.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4DC4#FFFFFF#000000##FFFFFF
##5B4DC41.006.363.306.36
#FFFFFF6.361.0021.001.00
#0000003.3021.001.0021.00
##FFFFFF6.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C8
Deuteranopia (green-blind)
#005BC2
Tritanopia (blue-blind)
#2E6981
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5b4dc4;
/* rgb */ color: rgb(91, 77, 196);
/* oklch */ color: oklch(50.2% 0.178 283.2);
Tailwind
colors: {
  custom: {
    50: '#927fd7',
    500: '#5b4dc4',
    950: '#000000',
  },
}
SCSS
$custom: #5b4dc4;
$custom-light: #927fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4dc4",
  "rgb": {
    "r": 91,
    "g": 77,
    "b": 196
  },
  "hsl": {
    "h": 247.059,
    "s": 50.211,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50235,
    "c": 0.17841,
    "h": 283.2
  },
  "luminance": 0.11517
}

Semantic roles & 50–950 ramp

primary
#5B4DC4
secondary
#CAD09D
accent
#DA4EC9
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5B4DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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