#5A7CD8#5A7CD8

#5A7CD8 is a mid, vivid blue. Relative luminance 0.215; OKLCH L 60.5% C 0.145 H 266.8°. Best body text is #000000 at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#5A7CD8
RGBrgb(90, 124, 216)
HSLhsl(224, 62%, 60%)
HSVhsv(224, 58%, 85%)
CMYKcmyk(58.3%, 42.6%, 0%, 15.3%)
CIE-LABlab(53.54, 15.47, -50.94)
CIE-LCHlch(53.54, 53.23, 286.89°)
OKLaboklab(60.49% -0.0081 -0.145)
OKLCHoklch(60.49% 0.145 266.8)
XYZxyz(23.8146, 21.5449, 67.8560)
Luminance0.2155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7CD8 #D8B65A
analogous
#5ABBD8 #5A7CD8 #775AD8
triadic
#5A7CD8 #D85A7C #7CD85A
tetradic
#5A7CD8 #D85ABB #D8B65A #5AD877
square
#5A7CD8 #D85ABB #D8B65A #5AD877
split-complementary
#5A7CD8 #D8775A #BBD85A
monochromatic
#234295 #2F58C6 #5A7CD8 #8BA3E4 #BDCBEF

Accessibility & contrast

On white

3.96
#5A7CD8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.31
#5A7CD8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7CD8
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7CD8#FFFFFF#000000##000000
##5A7CD81.003.965.315.31
#FFFFFF3.961.0021.0021.00
#0000005.3121.001.001.00
##0000005.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#5386DC
Deuteranopia (green-blind)
#427BD6
Tritanopia (blue-blind)
#00909F
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5a7cd8;
/* rgb */ color: rgb(90, 124, 216);
/* oklch */ color: oklch(60.5% 0.145 266.8);
Tailwind
colors: {
  custom: {
    50: '#92a1e4',
    500: '#5a7cd8',
    950: '#000000',
  },
}
SCSS
$custom: #5a7cd8;
$custom-light: #92a1e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7cd8",
  "rgb": {
    "r": 90,
    "g": 124,
    "b": 216
  },
  "hsl": {
    "h": 223.81,
    "s": 61.765,
    "l": 60
  },
  "oklch": {
    "l": 0.60489,
    "c": 0.14521,
    "h": 266.8
  },
  "luminance": 0.21547
}

Semantic roles & 50–950 ramp

primary
#5A7CD8
secondary
#DFD2AF
accent
#B943E5
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5A7CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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