#5B4CD9#5B4CD9

#5B4CD9 is a mid, highly saturated blue. Relative luminance 0.124; OKLCH L 51.8% C 0.206 H 281.2°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#5B4CD9
RGBrgb(91, 76, 217)
HSLhsl(246, 65%, 57%)
HSVhsv(246, 65%, 85%)
CMYKcmyk(58.1%, 65%, 0%, 14.9%)
CIE-LABlab(41.85, 45.15, -70.38)
CIE-LCHlch(41.85, 83.61, 302.68°)
OKLaboklab(51.77% 0.0401 -0.2025)
OKLCHoklch(51.77% 0.206 281.2)
XYZxyz(19.4193, 12.4015, 67.0026)
Luminance0.1240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4CD9 #CAD94C
analogous
#4C83D9 #5B4CD9 #A24CD9
triadic
#5B4CD9 #D95B4C #4CD95B
tetradic
#5B4CD9 #D94C83 #CAD94C #4CD9A2
square
#5B4CD9 #D94C83 #CAD94C #4CD9A2
split-complementary
#5B4CD9 #D9A24C #83D94C
monochromatic
#2A1E8D #3929BF #5B4CD9 #897EE4 #B8B1EE

Accessibility & contrast

On white

6.03
#5B4CD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5B4CD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4CD9
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4CD9#FFFFFF#000000##FFFFFF
##5B4CD91.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DD
Deuteranopia (green-blind)
#005ED6
Tritanopia (blue-blind)
#06708C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5b4cd9;
/* rgb */ color: rgb(91, 76, 217);
/* oklch */ color: oklch(51.8% 0.206 281.2);
Tailwind
colors: {
  custom: {
    50: '#967fe6',
    500: '#5b4cd9',
    950: '#000000',
  },
}
SCSS
$custom: #5b4cd9;
$custom-light: #967fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4cd9",
  "rgb": {
    "r": 91,
    "g": 76,
    "b": 217
  },
  "hsl": {
    "h": 246.383,
    "s": 64.977,
    "l": 57.451
  },
  "oklch": {
    "l": 0.51772,
    "c": 0.20645,
    "h": 281.2
  },
  "luminance": 0.12403
}

Semantic roles & 50–950 ramp

primary
#5B4CD9
secondary
#D7DDA4
accent
#E840D6
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5B4CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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