#5B54E8#5B54E8

#5B54E8 is a mid, highly saturated blue. Relative luminance 0.144; OKLCH L 54.3% C 0.216 H 278.5°. Best body text is #FFFFFF at 5.41:1 contrast (WCAG AA passes).

Color values

HEX#5B54E8
RGBrgb(91, 84, 232)
HSLhsl(243, 76%, 62%)
HSVhsv(243, 64%, 91%)
CMYKcmyk(60.8%, 63.8%, 0%, 9%)
CIE-LABlab(44.79, 45.20, -74.11)
CIE-LCHlch(44.79, 86.80, 301.38°)
OKLaboklab(54.28% 0.0319 -0.2134)
OKLCHoklch(54.28% 0.216 278.5)
XYZxyz(22.0455, 14.3893, 77.9440)
Luminance0.1439 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B54E8 #E1E854
analogous
#5497E8 #5B54E8 #A554E8
triadic
#5B54E8 #E85B54 #54E85B
tetradic
#5B54E8 #E85497 #E1E854 #54E8A5
square
#5B54E8 #E85497 #E1E854 #54E8A5
split-complementary
#5B54E8 #E8A554 #97E854
monochromatic
#1E17AB #271EE1 #5B54E8 #8F8AEF #C2C0F7

Accessibility & contrast

On white

5.41
#5B54E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#5B54E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B54E8
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B54E8#FFFFFF#000000##FFFFFF
##5B54E81.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070ED
Deuteranopia (green-blind)
#0064E5
Tritanopia (blue-blind)
#007A96
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5b54e8;
/* rgb */ color: rgb(91, 84, 232);
/* oklch */ color: oklch(54.3% 0.216 278.5);
Tailwind
colors: {
  custom: {
    50: '#9785f0',
    500: '#5b54e8',
    950: '#000000',
  },
}
SCSS
$custom: #5b54e8;
$custom-light: #9785f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5b54e8",
  "rgb": {
    "r": 91,
    "g": 84,
    "b": 232
  },
  "hsl": {
    "h": 242.838,
    "s": 76.289,
    "l": 61.961
  },
  "oklch": {
    "l": 0.54282,
    "c": 0.21582,
    "h": 278.5
  },
  "luminance": 0.14391
}

Semantic roles & 50–950 ramp

primary
#5B54E8
secondary
#E5E7B1
accent
#D80DCF
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5B54E8

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

Preview Lab → · Contrast checker → · Palette generator →

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