#5B54EB#5B54EB

#5B54EB is a mid, highly saturated blue. Relative luminance 0.146; OKLCH L 54.5% C 0.220 H 278.3°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#5B54EB
RGBrgb(91, 84, 235)
HSLhsl(243, 79%, 63%)
HSVhsv(243, 64%, 92%)
CMYKcmyk(61.3%, 64.3%, 0%, 7.8%)
CIE-LABlab(45.03, 46.14, -75.41)
CIE-LCHlch(45.03, 88.40, 301.46°)
OKLaboklab(54.53% 0.0317 -0.2173)
OKLCHoklch(54.53% 0.22 278.3)
XYZxyz(22.4753, 14.5612, 80.2074)
Luminance0.1456 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B54EB #E4EB54
analogous
#5499EB #5B54EB #A654EB
triadic
#5B54EB #EB5B54 #54EB5B
tetradic
#5B54EB #EB5499 #E4EB54 #54EBA6
square
#5B54EB #EB5499 #E4EB54 #54EBA6
split-complementary
#5B54EB #EBA654 #99EB54
monochromatic
#1C15B0 #261DE5 #5B54EB #908BF1 #C4C2F8

Accessibility & contrast

On white

5.37
#5B54EB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#5B54EB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B54EB
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B54EB#FFFFFF#000000##FFFFFF
##5B54EB1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071F0
Deuteranopia (green-blind)
#0064E8
Tritanopia (blue-blind)
#007B98
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5b54eb;
/* rgb */ color: rgb(91, 84, 235);
/* oklch */ color: oklch(54.5% 0.220 278.3);
Tailwind
colors: {
  custom: {
    50: '#9885f3',
    500: '#5b54eb',
    950: '#000000',
  },
}
SCSS
$custom: #5b54eb;
$custom-light: #9885f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5b54eb",
  "rgb": {
    "r": 91,
    "g": 84,
    "b": 235
  },
  "hsl": {
    "h": 242.781,
    "s": 79.058,
    "l": 62.549
  },
  "oklch": {
    "l": 0.54532,
    "c": 0.21955,
    "h": 278.3
  },
  "luminance": 0.14563
}

Semantic roles & 50–950 ramp

primary
#5B54EB
secondary
#E6E9B2
accent
#DB0AD2
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B54EB

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

Preview Lab → · Contrast checker → · Palette generator →

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