#5A54E4#5A54E4

#5A54E4 is a mid, highly saturated blue. Relative luminance 0.141; OKLCH L 53.9% C 0.211 H 278.5°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#5A54E4
RGBrgb(90, 84, 228)
HSLhsl(243, 73%, 61%)
HSVhsv(243, 63%, 89%)
CMYKcmyk(60.5%, 63.2%, 0%, 10.6%)
CIE-LABlab(44.40, 43.78, -72.48)
CIE-LCHlch(44.40, 84.68, 301.13°)
OKLaboklab(53.88% 0.0311 -0.2087)
OKLCHoklch(53.88% 0.211 278.5)
XYZxyz(21.3859, 14.1141, 74.9811)
Luminance0.1412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A54E4 #DEE454
analogous
#5496E4 #5A54E4 #A254E4
triadic
#5A54E4 #E45A54 #54E45A
tetradic
#5A54E4 #E45496 #DEE454 #54E4A2
square
#5A54E4 #E45496 #DEE454 #54E4A2
split-complementary
#5A54E4 #E4A254 #96E454
monochromatic
#201AA4 #2A22D9 #5A54E4 #8D89EC #C0BEF5

Accessibility & contrast

On white

5.49
#5A54E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#5A54E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A54E4
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A54E4#FFFFFF#000000##FFFFFF
##5A54E41.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.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: #5a54e4;
/* rgb */ color: rgb(90, 84, 228);
/* oklch */ color: oklch(53.9% 0.211 278.5);
Tailwind
colors: {
  custom: {
    50: '#9685ee',
    500: '#5a54e4',
    950: '#000000',
  },
}
SCSS
$custom: #5a54e4;
$custom-light: #9685ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5a54e4",
  "rgb": {
    "r": 90,
    "g": 84,
    "b": 228
  },
  "hsl": {
    "h": 242.5,
    "s": 72.727,
    "l": 61.176
  },
  "oklch": {
    "l": 0.5388,
    "c": 0.21101,
    "h": 278.5
  },
  "luminance": 0.14116
}

Semantic roles & 50–950 ramp

primary
#5A54E4
secondary
#E3E5AF
accent
#D511CD
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B16
muted
#7F7C84

Preview Lab

Preview with #5A54E4

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

Preview Lab → · Contrast checker → · Palette generator →

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