#5A7EC7#5A7EC7

#5A7EC7 is a mid, moderate blue. Relative luminance 0.212; OKLCH L 59.9% C 0.119 H 263.3°. Best body text is #000000 at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#5A7EC7
RGBrgb(90, 126, 199)
HSLhsl(220, 49%, 57%)
HSVhsv(220, 55%, 78%)
CMYKcmyk(54.8%, 36.7%, 0%, 22%)
CIE-LABlab(53.19, 8.70, -41.86)
CIE-LCHlch(53.19, 42.76, 281.74°)
OKLaboklab(59.92% -0.0138 -0.1184)
OKLCHoklch(59.92% 0.119 263.3)
XYZxyz(21.9826, 21.2172, 56.9587)
Luminance0.2122 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7EC7 #C7A35A
analogous
#5AB5C7 #5A7EC7 #6D5AC7
triadic
#5A7EC7 #C75A7E #7EC75A
tetradic
#5A7EC7 #C75AB5 #C7A35A #5AC76D
square
#5A7EC7 #C75AB5 #C7A35A #5AC76D
split-complementary
#5A7EC7 #C76D5A #B5C75A
monochromatic
#2A457C #3A5FAA #5A7EC7 #88A2D7 #B5C5E6

Accessibility & contrast

On white

4.00
#5A7EC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.24
#5A7EC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7EC7
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7EC7#FFFFFF#000000##000000
##5A7EC71.004.005.245.24
#FFFFFF4.001.0021.0021.00
#0000005.2421.001.001.00
##0000005.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6084CA
Deuteranopia (green-blind)
#537AC5
Tritanopia (blue-blind)
#1A8E99
Achromatopsia (no color)
#7F7F7F

Design tokens & code

CSS
--color: #5a7ec7;
/* rgb */ color: rgb(90, 126, 199);
/* oklch */ color: oklch(59.9% 0.119 263.3);
Tailwind
colors: {
  custom: {
    50: '#90a3d8',
    500: '#5a7ec7',
    950: '#000000',
  },
}
SCSS
$custom: #5a7ec7;
$custom-light: #90a3d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7ec7",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 199
  },
  "hsl": {
    "h": 220.183,
    "s": 49.321,
    "l": 56.667
  },
  "oklch": {
    "l": 0.59922,
    "c": 0.11921,
    "h": 263.3
  },
  "luminance": 0.21219
}

Semantic roles & 50–950 ramp

primary
#5A7EC7
secondary
#D5C6A8
accent
#AB4FD9
background
#F9F9FD
surface
#F2F2FA
border
#CCCCD3
text
#0D0F14
muted
#7E7E83

Preview Lab

Preview with #5A7EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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