#5A54F0#5A54F0

#5A54F0 is a mid, highly saturated blue. Relative luminance 0.148; OKLCH L 54.9% C 0.226 H 277.6°. Best body text is #FFFFFF at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#5A54F0
RGBrgb(90, 84, 240)
HSLhsl(242, 84%, 64%)
HSVhsv(242, 65%, 94%)
CMYKcmyk(62.5%, 65%, 0%, 5.9%)
CIE-LABlab(45.36, 47.57, -77.67)
CIE-LCHlch(45.36, 91.08, 301.49°)
OKLaboklab(54.88% 0.03 -0.2239)
OKLCHoklch(54.88% 0.226 277.6)
XYZxyz(23.1099, 14.8037, 84.0608)
Luminance0.1481 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A54F0 #EAF054
analogous
#549CF0 #5A54F0 #A854F0
triadic
#5A54F0 #F05A54 #54F05A
tetradic
#5A54F0 #F0549C #EAF054 #54F0A8
square
#5A54F0 #F0549C #EAF054 #54F0A8
split-complementary
#5A54F0 #F0A854 #9CF054
monochromatic
#1710B9 #241CEB #5A54F0 #908CF5 #C7C5FA

Accessibility & contrast

On white

5.30
#5A54F0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#5A54F0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A54F0
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A54F0#FFFFFF#000000##FFFFFF
##5A54F01.005.303.965.30
#FFFFFF5.301.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072F5
Deuteranopia (green-blind)
#0065ED
Tritanopia (blue-blind)
#007C9B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5a54f0;
/* rgb */ color: rgb(90, 84, 240);
/* oklch */ color: oklch(54.9% 0.226 277.6);
Tailwind
colors: {
  custom: {
    50: '#9885f6',
    500: '#5a54f0',
    950: '#000000',
  },
}
SCSS
$custom: #5a54f0;
$custom-light: #9885f6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a54f0",
  "rgb": {
    "r": 90,
    "g": 84,
    "b": 240
  },
  "hsl": {
    "h": 242.308,
    "s": 83.871,
    "l": 63.529
  },
  "oklch": {
    "l": 0.54884,
    "c": 0.22593,
    "h": 277.6
  },
  "luminance": 0.14806
}

Semantic roles & 50–950 ramp

primary
#5A54F0
secondary
#E9ECB4
accent
#E005D8
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A54F0

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

Preview Lab → · Contrast checker → · Palette generator →

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