#5B4FE8#5B4FE8

#5B4FE8 is a mid, highly saturated blue. Relative luminance 0.136; OKLCH L 53.5% C 0.222 H 279.3°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#5B4FE8
RGBrgb(91, 79, 232)
HSLhsl(245, 77%, 61%)
HSVhsv(245, 66%, 91%)
CMYKcmyk(60.8%, 65.9%, 0%, 9%)
CIE-LABlab(43.71, 48.07, -75.86)
CIE-LCHlch(43.71, 89.81, 302.36°)
OKLaboklab(53.5% 0.0359 -0.2186)
OKLCHoklch(53.5% 0.222 279.3)
XYZxyz(21.6712, 13.6407, 77.8192)
Luminance0.1364 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B4FE8 #DCE84F
analogous
#4F8FE8 #5B4FE8 #A74FE8
triadic
#5B4FE8 #E85B4F #4FE85B
tetradic
#5B4FE8 #E84F8F #DCE84F #4FE8A7
square
#5B4FE8 #E84F8F #DCE84F #4FE8A7
split-complementary
#5B4FE8 #E8A74F #8FE84F
monochromatic
#2116A7 #2C1DDD #5B4FE8 #8D85EF #C0BBF6

Accessibility & contrast

On white

5.63
#5B4FE8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#5B4FE8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B4FE8
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B4FE8#FFFFFF#000000##FFFFFF
##5B4FE81.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DED
Deuteranopia (green-blind)
#0061E5
Tritanopia (blue-blind)
#007795
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5b4fe8;
/* rgb */ color: rgb(91, 79, 232);
/* oklch */ color: oklch(53.5% 0.222 279.3);
Tailwind
colors: {
  custom: {
    50: '#9881f0',
    500: '#5b4fe8',
    950: '#000000',
  },
}
SCSS
$custom: #5b4fe8;
$custom-light: #9881f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b4fe8",
  "rgb": {
    "r": 91,
    "g": 79,
    "b": 232
  },
  "hsl": {
    "h": 244.706,
    "s": 76.884,
    "l": 60.98
  },
  "oklch": {
    "l": 0.53503,
    "c": 0.22153,
    "h": 279.3
  },
  "luminance": 0.13642
}

Semantic roles & 50–950 ramp

primary
#5B4FE8
secondary
#E2E6AD
accent
#D90CC9
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5B4FE8

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

Preview Lab → · Contrast checker → · Palette generator →

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