#5B54E4#5B54E4

#5B54E4 is a mid, highly saturated blue. Relative luminance 0.142; OKLCH L 54.0% C 0.211 H 278.8°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#5B54E4
RGBrgb(91, 84, 228)
HSLhsl(243, 73%, 61%)
HSVhsv(243, 63%, 89%)
CMYKcmyk(60.1%, 63.2%, 0%, 10.6%)
CIE-LABlab(44.47, 43.94, -72.36)
CIE-LCHlch(44.47, 84.66, 301.26°)
OKLaboklab(53.95% 0.0323 -0.2083)
OKLCHoklch(53.95% 0.211 278.8)
XYZxyz(21.4838, 14.1646, 74.9857)
Luminance0.1417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B54E4 #DDE454
analogous
#5495E4 #5B54E4 #A354E4
triadic
#5B54E4 #E45B54 #54E45B
tetradic
#5B54E4 #E45495 #DDE454 #54E4A3
square
#5B54E4 #E45495 #DDE454 #54E4A3
split-complementary
#5B54E4 #E4A354 #95E454
monochromatic
#211AA4 #2B22D9 #5B54E4 #8E89EC #C0BEF5

Accessibility & contrast

On white

5.48
#5B54E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#5B54E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B54E4
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B54E4#FFFFFF#000000##FFFFFF
##5B54E41.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FE9
Deuteranopia (green-blind)
#0063E1
Tritanopia (blue-blind)
#007894
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5b54e4;
/* rgb */ color: rgb(91, 84, 228);
/* oklch */ color: oklch(54.0% 0.211 278.8);
Tailwind
colors: {
  custom: {
    50: '#9785ee',
    500: '#5b54e4',
    950: '#000000',
  },
}
SCSS
$custom: #5b54e4;
$custom-light: #9785ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5b54e4",
  "rgb": {
    "r": 91,
    "g": 84,
    "b": 228
  },
  "hsl": {
    "h": 242.917,
    "s": 72.727,
    "l": 61.176
  },
  "oklch": {
    "l": 0.53951,
    "c": 0.2108,
    "h": 278.8
  },
  "luminance": 0.14166
}

Semantic roles & 50–950 ramp

primary
#5B54E4
secondary
#E2E5AF
accent
#D511CB
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #5B54E4

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

Preview Lab → · Contrast checker → · Palette generator →

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