#5B4CD8#5B4CD8

#5B4CD8 is a mid, highly saturated blue. Relative luminance 0.124; OKLCH L 51.7% C 0.205 H 281.3°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#5B4CD8
RGBrgb(91, 76, 216)
HSLhsl(246, 64%, 57%)
HSVhsv(246, 65%, 85%)
CMYKcmyk(57.9%, 64.8%, 0%, 15.3%)
CIE-LABlab(41.77, 44.84, -69.94)
CIE-LCHlch(41.77, 83.08, 302.66°)
OKLaboklab(51.69% 0.0402 -0.2012)
OKLCHoklch(51.69% 0.205 281.3)
XYZxyz(19.2896, 12.3496, 66.3197)
Luminance0.1235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4CD8 #C9D84C
analogous
#4C83D8 #5B4CD8 #A14CD8
triadic
#5B4CD8 #D85B4C #4CD85B
tetradic
#5B4CD8 #D84C83 #C9D84C #4CD8A1
square
#5B4CD8 #D84C83 #C9D84C #4CD8A1
split-complementary
#5B4CD8 #D8A14C #83D84C
monochromatic
#2A1E8B #3929BE #5B4CD8 #897EE3 #B7B1EE

Accessibility & contrast

On white

6.05
#5B4CD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#5B4CD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4CD8
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4CD8#FFFFFF#000000##FFFFFF
##5B4CD81.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DC
Deuteranopia (green-blind)
#005DD5
Tritanopia (blue-blind)
#0A6F8B
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5b4cd8;
/* rgb */ color: rgb(91, 76, 216);
/* oklch */ color: oklch(51.7% 0.205 281.3);
Tailwind
colors: {
  custom: {
    50: '#957fe5',
    500: '#5b4cd8',
    950: '#000000',
  },
}
SCSS
$custom: #5b4cd8;
$custom-light: #957fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4cd8",
  "rgb": {
    "r": 91,
    "g": 76,
    "b": 216
  },
  "hsl": {
    "h": 246.429,
    "s": 64.22,
    "l": 57.255
  },
  "oklch": {
    "l": 0.51689,
    "c": 0.2052,
    "h": 281.3
  },
  "luminance": 0.12351
}

Semantic roles & 50–950 ramp

primary
#5B4CD8
secondary
#D6DCA4
accent
#E741D5
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5B4CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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