#5A54E8#5A54E8

#5A54E8 is a mid, highly saturated blue. Relative luminance 0.143; OKLCH L 54.2% C 0.216 H 278.2°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#5A54E8
RGBrgb(90, 84, 232)
HSLhsl(242, 76%, 62%)
HSVhsv(242, 64%, 91%)
CMYKcmyk(61.2%, 63.8%, 0%, 9%)
CIE-LABlab(44.71, 45.05, -74.23)
CIE-LCHlch(44.71, 86.83, 301.25°)
OKLaboklab(54.21% 0.0307 -0.2138)
OKLCHoklch(54.21% 0.216 278.2)
XYZxyz(21.9476, 14.3388, 77.9394)
Luminance0.1434 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A54E8 #E2E854
analogous
#5498E8 #5A54E8 #A454E8
triadic
#5A54E8 #E85A54 #54E85A
tetradic
#5A54E8 #E85498 #E2E854 #54E8A4
square
#5A54E8 #E85498 #E2E854 #54E8A4
split-complementary
#5A54E8 #E8A454 #98E854
monochromatic
#1D17AB #261EE1 #5A54E8 #8E8AEF #C2C0F7

Accessibility & contrast

On white

5.43
#5A54E8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#5A54E8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A54E8
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A54E8#FFFFFF#000000##FFFFFF
##5A54E81.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.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: #5a54e8;
/* rgb */ color: rgb(90, 84, 232);
/* oklch */ color: oklch(54.2% 0.216 278.2);
Tailwind
colors: {
  custom: {
    50: '#9785f0',
    500: '#5a54e8',
    950: '#000000',
  },
}
SCSS
$custom: #5a54e8;
$custom-light: #9785f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a54e8",
  "rgb": {
    "r": 90,
    "g": 84,
    "b": 232
  },
  "hsl": {
    "h": 242.432,
    "s": 76.289,
    "l": 61.961
  },
  "oklch": {
    "l": 0.54211,
    "c": 0.21602,
    "h": 278.2
  },
  "luminance": 0.14341
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A54E8

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

Preview Lab → · Contrast checker → · Palette generator →

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