#5B4EE5#5B4EE5

#5B4EE5 is a mid, highly saturated blue. Relative luminance 0.133; OKLCH L 53.1% C 0.219 H 279.7°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#5B4EE5
RGBrgb(91, 78, 229)
HSLhsl(245, 74%, 60%)
HSVhsv(245, 66%, 90%)
CMYKcmyk(60.3%, 65.9%, 0%, 10.2%)
CIE-LABlab(43.25, 47.71, -74.91)
CIE-LCHlch(43.25, 88.82, 302.49°)
OKLaboklab(53.1% 0.0371 -0.2158)
OKLCHoklch(53.1% 0.219 279.7)
XYZxyz(21.1771, 13.3285, 75.5703)
Luminance0.1333 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4EE5 #D8E54E
analogous
#4E8CE5 #5B4EE5 #A74EE5
triadic
#5B4EE5 #E55B4E #4EE55B
tetradic
#5B4EE5 #E54E8C #D8E54E #4EE5A7
square
#5B4EE5 #E54E8C #D8E54E #4EE5A7
split-complementary
#5B4EE5 #E5A74E #8CE54E
monochromatic
#2318A1 #2F1FD6 #5B4EE5 #8C83ED #BEB9F5

Accessibility & contrast

On white

5.73
#5B4EE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#5B4EE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4EE5
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4EE5#FFFFFF#000000##FFFFFF
##5B4EE51.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CEA
Deuteranopia (green-blind)
#0060E2
Tritanopia (blue-blind)
#007593
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5b4ee5;
/* rgb */ color: rgb(91, 78, 229);
/* oklch */ color: oklch(53.1% 0.219 279.7);
Tailwind
colors: {
  custom: {
    50: '#9781ee',
    500: '#5b4ee5',
    950: '#000000',
  },
}
SCSS
$custom: #5b4ee5;
$custom-light: #9781ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4ee5",
  "rgb": {
    "r": 91,
    "g": 78,
    "b": 229
  },
  "hsl": {
    "h": 245.166,
    "s": 74.384,
    "l": 60.196
  },
  "oklch": {
    "l": 0.53095,
    "c": 0.21898,
    "h": 279.7
  },
  "luminance": 0.1333
}

Semantic roles & 50–950 ramp

primary
#5B4EE5
secondary
#DFE4AA
accent
#D70FC5
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5B4EE5

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

Preview Lab → · Contrast checker → · Palette generator →

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