#5A7FC4#5A7FC4

#5A7FC4 is a mid, moderate blue. Relative luminance 0.213; OKLCH L 60.0% C 0.114 H 262.1°. Best body text is #000000 at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#5A7FC4
RGBrgb(90, 127, 196)
HSLhsl(219, 47%, 56%)
HSVhsv(219, 54%, 77%)
CMYKcmyk(54.1%, 35.2%, 0%, 23.1%)
CIE-LABlab(53.32, 7.13, -39.95)
CIE-LCHlch(53.32, 40.58, 280.12°)
OKLaboklab(59.97% -0.0157 -0.1128)
OKLCHoklch(59.97% 0.114 262.1)
XYZxyz(21.7662, 21.3363, 55.1852)
Luminance0.2134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7FC4 #C49F5A
analogous
#5AB4C4 #5A7FC4 #6A5AC4
triadic
#5A7FC4 #C45A7F #7FC45A
tetradic
#5A7FC4 #C45AB4 #C49F5A #5AC46A
square
#5A7FC4 #C45AB4 #C49F5A #5AC46A
split-complementary
#5A7FC4 #C46A5A #B4C45A
monochromatic
#2B4679 #3B60A6 #5A7FC4 #87A2D4 #B4C5E4

Accessibility & contrast

On white

3.99
#5A7FC4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.27
#5A7FC4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7FC4
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7FC4#FFFFFF#000000##000000
##5A7FC41.003.995.275.27
#FFFFFF3.991.0021.0021.00
#0000005.2721.001.001.00
##0000005.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#6385C7
Deuteranopia (green-blind)
#577BC3
Tritanopia (blue-blind)
#1F8E98
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5a7fc4;
/* rgb */ color: rgb(90, 127, 196);
/* oklch */ color: oklch(60.0% 0.114 262.1);
Tailwind
colors: {
  custom: {
    50: '#90a3d6',
    500: '#5a7fc4',
    950: '#000000',
  },
}
SCSS
$custom: #5a7fc4;
$custom-light: #90a3d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7fc4",
  "rgb": {
    "r": 90,
    "g": 127,
    "b": 196
  },
  "hsl": {
    "h": 219.057,
    "s": 47.321,
    "l": 56.078
  },
  "oklch": {
    "l": 0.59973,
    "c": 0.11391,
    "h": 262.1
  },
  "luminance": 0.21338
}

Semantic roles & 50–950 ramp

primary
#5A7FC4
secondary
#D3C4A7
accent
#A851D7
background
#F9FAFD
surface
#F1F3FA
border
#CBCDD3
text
#0D0F14
muted
#7E7F83

Preview Lab

Preview with #5A7FC4

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

Preview Lab → · Contrast checker → · Palette generator →

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