#5A7AE5#5A7AE5

#5A7AE5 is a mid, vivid blue. Relative luminance 0.217; OKLCH L 60.9% C 0.166 H 268.6°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#5A7AE5
RGBrgb(90, 122, 229)
HSLhsl(226, 73%, 63%)
HSVhsv(226, 61%, 90%)
CMYKcmyk(60.7%, 46.7%, 0%, 10.2%)
CIE-LABlab(53.76, 21.01, -57.90)
CIE-LCHlch(53.76, 61.59, 289.95°)
OKLaboklab(60.9% -0.004 -0.1655)
OKLCHoklch(60.9% 0.166 268.6)
XYZxyz(25.3141, 21.7477, 76.9773)
Luminance0.2175 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7AE5 #E5C55A
analogous
#5AC0E5 #5A7AE5 #7F5AE5
triadic
#5A7AE5 #E55A7A #7AE55A
tetradic
#5A7AE5 #E55AC0 #E5C55A #5AE57F
square
#5A7AE5 #E55AC0 #E5C55A #5AE57F
split-complementary
#5A7AE5 #E57F5A #C0E55A
monochromatic
#1B3CAA #254FDD #5A7AE5 #8FA5ED #C4CFF6

Accessibility & contrast

On white

3.93
#5A7AE5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#5A7AE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7AE5
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7AE5#FFFFFF#000000##000000
##5A7AE51.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4587E9
Deuteranopia (green-blind)
#2D7BE3
Tritanopia (blue-blind)
#0092A4
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #5a7ae5;
/* rgb */ color: rgb(90, 122, 229);
/* oklch */ color: oklch(60.9% 0.166 268.6);
Tailwind
colors: {
  custom: {
    50: '#94a0ee',
    500: '#5a7ae5',
    950: '#000000',
  },
}
SCSS
$custom: #5a7ae5;
$custom-light: #94a0ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7ae5",
  "rgb": {
    "r": 90,
    "g": 122,
    "b": 229
  },
  "hsl": {
    "h": 226.187,
    "s": 72.775,
    "l": 62.549
  },
  "oklch": {
    "l": 0.60898,
    "c": 0.1655,
    "h": 268.6
  },
  "luminance": 0.2175
}

Semantic roles & 50–950 ramp

primary
#5A7AE5
secondary
#E7DBB4
accent
#A811D5
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5A7AE5

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

Preview Lab → · Contrast checker → · Palette generator →

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