#5B4DC6#5B4DC6

#5B4DC6 is a mid, vivid blue. Relative luminance 0.116; OKLCH L 50.4% C 0.181 H 283.0°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#5B4DC6
RGBrgb(91, 77, 198)
HSLhsl(247, 51%, 54%)
HSVhsv(247, 61%, 78%)
CMYKcmyk(54%, 61.1%, 0%, 22.4%)
CIE-LABlab(40.59, 38.68, -61.48)
CIE-LCHlch(40.59, 72.63, 302.17°)
OKLaboklab(50.39% 0.0407 -0.1764)
OKLCHoklch(50.39% 0.181 283)
XYZxyz(17.1582, 11.6081, 54.7516)
Luminance0.1161 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4DC6 #B8C64D
analogous
#4D7CC6 #5B4DC6 #984DC6
triadic
#5B4DC6 #C65B4D #4DC65B
tetradic
#5B4DC6 #C64D7C #B8C64D #4DC698
square
#5B4DC6 #C64D7C #B8C64D #4DC698
split-complementary
#5B4DC6 #C6984D #7CC64D
monochromatic
#2E2574 #4134A2 #5B4DC6 #867BD5 #B0AAE4

Accessibility & contrast

On white

6.32
#5B4DC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#5B4DC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4DC6
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4DC6#FFFFFF#000000##FFFFFF
##5B4DC61.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064CA
Deuteranopia (green-blind)
#005CC4
Tritanopia (blue-blind)
#2C6A82
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5b4dc6;
/* rgb */ color: rgb(91, 77, 198);
/* oklch */ color: oklch(50.4% 0.181 283.0);
Tailwind
colors: {
  custom: {
    50: '#937fd8',
    500: '#5b4dc6',
    950: '#000000',
  },
}
SCSS
$custom: #5b4dc6;
$custom-light: #937fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4dc6",
  "rgb": {
    "r": 91,
    "g": 77,
    "b": 198
  },
  "hsl": {
    "h": 246.942,
    "s": 51.489,
    "l": 53.922
  },
  "oklch": {
    "l": 0.50391,
    "c": 0.18101,
    "h": 283
  },
  "luminance": 0.11609
}

Semantic roles & 50–950 ramp

primary
#5B4DC6
secondary
#CBD19E
accent
#DB4DCB
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5B4DC6

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

Preview Lab → · Contrast checker → · Palette generator →

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