#5A7BE4#5A7BE4

#5A7BE4 is a mid, vivid blue. Relative luminance 0.219; OKLCH L 61.0% C 0.163 H 268.2°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#5A7BE4
RGBrgb(90, 123, 228)
HSLhsl(226, 72%, 62%)
HSVhsv(226, 61%, 89%)
CMYKcmyk(60.5%, 46.1%, 0%, 10.6%)
CIE-LABlab(53.96, 20.07, -57.01)
CIE-LCHlch(53.96, 60.44, 289.39°)
OKLaboklab(61.03% -0.0052 -0.1628)
OKLCHoklch(61.03% 0.163 268.2)
XYZxyz(25.2983, 21.9389, 76.2852)
Luminance0.2194 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7BE4 #E4C35A
analogous
#5AC0E4 #5A7BE4 #7E5AE4
triadic
#5A7BE4 #E45A7B #7BE45A
tetradic
#5A7BE4 #E45AC0 #E4C35A #5AE47E
square
#5A7BE4 #E45AC0 #E4C35A #5AE47E
split-complementary
#5A7BE4 #E47E5A #C0E45A
monochromatic
#1C3DA8 #2551DB #5A7BE4 #8FA5ED #C3CFF5

Accessibility & contrast

On white

3.90
#5A7BE4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#5A7BE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7BE4
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7BE4#FFFFFF#000000##000000
##5A7BE41.003.905.395.39
#FFFFFF3.901.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#4888E8
Deuteranopia (green-blind)
#317BE2
Tritanopia (blue-blind)
#0093A4
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5a7be4;
/* rgb */ color: rgb(90, 123, 228);
/* oklch */ color: oklch(61.0% 0.163 268.2);
Tailwind
colors: {
  custom: {
    50: '#94a0ed',
    500: '#5a7be4',
    950: '#000000',
  },
}
SCSS
$custom: #5a7be4;
$custom-light: #94a0ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7be4",
  "rgb": {
    "r": 90,
    "g": 123,
    "b": 228
  },
  "hsl": {
    "h": 225.652,
    "s": 71.875,
    "l": 62.353
  },
  "oklch": {
    "l": 0.61034,
    "c": 0.16291,
    "h": 268.2
  },
  "luminance": 0.21941
}

Semantic roles & 50–950 ramp

primary
#5A7BE4
secondary
#E6DAB4
accent
#A512D4
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5A7BE4

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

Preview Lab → · Contrast checker → · Palette generator →

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