#5A54BB#5A54BB

#5A54BB is a mid, vivid blue. Relative luminance 0.121; OKLCH L 50.7% C 0.157 H 281.8°. Best body text is #FFFFFF at 6.14:1 contrast (WCAG AA passes).

Color values

HEX#5A54BB
RGBrgb(90, 84, 187)
HSLhsl(243, 43%, 53%)
HSVhsv(243, 55%, 73%)
CMYKcmyk(51.9%, 55.1%, 0%, 26.7%)
CIE-LABlab(41.38, 30.78, -53.79)
CIE-LCHlch(41.38, 61.98, 299.78°)
OKLaboklab(50.71% 0.0323 -0.1538)
OKLCHoklch(50.71% 0.157 281.8)
XYZxyz(16.3537, 12.1012, 48.4781)
Luminance0.1210 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A54BB #B5BB54
analogous
#5481BB #5A54BB #8D54BB
triadic
#5A54BB #BB5A54 #54BB5A
tetradic
#5A54BB #BB5481 #B5BB54 #54BB8D
square
#5A54BB #BB5481 #B5BB54 #54BB8D
split-complementary
#5A54BB #BB8D54 #81BB54
monochromatic
#2E2A6A #413C96 #5A54BB #8480CC #AFACDE

Accessibility & contrast

On white

6.14
#5A54BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#5A54BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A54BB
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A54BB#FFFFFF#000000##FFFFFF
##5A54BB1.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1465BF
Deuteranopia (green-blind)
#025EB9
Tritanopia (blue-blind)
#336B7F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a54bb;
/* rgb */ color: rgb(90, 84, 187);
/* oklch */ color: oklch(50.7% 0.157 281.8);
Tailwind
colors: {
  custom: {
    50: '#9084d0',
    500: '#5a54bb',
    950: '#000000',
  },
}
SCSS
$custom: #5a54bb;
$custom-light: #9084d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a54bb",
  "rgb": {
    "r": 90,
    "g": 84,
    "b": 187
  },
  "hsl": {
    "h": 243.495,
    "s": 43.096,
    "l": 53.137
  },
  "oklch": {
    "l": 0.50706,
    "c": 0.15711,
    "h": 281.8
  },
  "luminance": 0.12102
}

Semantic roles & 50–950 ramp

primary
#5A54BB
secondary
#C9CC9F
accent
#D355CC
background
#F9F8FC
surface
#F2EFF9
border
#CCCAD2
text
#0D0B14
muted
#7E7C82

Preview Lab

Preview with #5A54BB

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

Preview Lab → · Contrast checker → · Palette generator →

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