#5A7EE2#5A7EE2

#5A7EE2 is a mid, vivid blue. Relative luminance 0.226; OKLCH L 61.5% C 0.157 H 266.9°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#5A7EE2
RGBrgb(90, 126, 226)
HSLhsl(224, 70%, 62%)
HSVhsv(224, 60%, 89%)
CMYKcmyk(60.2%, 44.2%, 0%, 11.4%)
CIE-LABlab(54.64, 17.57, -54.80)
CIE-LCHlch(54.64, 57.55, 287.78°)
OKLaboklab(61.52% -0.0085 -0.1563)
OKLCHoklch(61.52% 0.157 266.9)
XYZxyz(25.4001, 22.5842, 74.9574)
Luminance0.2259 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7EE2 #E2BE5A
analogous
#5AC2E2 #5A7EE2 #7A5AE2
triadic
#5A7EE2 #E25A7E #7EE25A
tetradic
#5A7EE2 #E25AC2 #E2BE5A #5AE27A
square
#5A7EE2 #E25AC2 #E2BE5A #5AE27A
split-complementary
#5A7EE2 #E27A5A #C2E25A
monochromatic
#1D41A5 #2655D9 #5A7EE2 #8EA7EB #C2CFF4

Accessibility & contrast

On white

3.81
#5A7EE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#5A7EE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7EE2
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7EE2#FFFFFF#000000##000000
##5A7EE21.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5089E6
Deuteranopia (green-blind)
#3B7DE0
Tritanopia (blue-blind)
#0095A5
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #5a7ee2;
/* rgb */ color: rgb(90, 126, 226);
/* oklch */ color: oklch(61.5% 0.157 266.9);
Tailwind
colors: {
  custom: {
    50: '#94a2ec',
    500: '#5a7ee2',
    950: '#000000',
  },
}
SCSS
$custom: #5a7ee2;
$custom-light: #94a2ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7ee2",
  "rgb": {
    "r": 90,
    "g": 126,
    "b": 226
  },
  "hsl": {
    "h": 224.118,
    "s": 70.103,
    "l": 61.961
  },
  "oklch": {
    "l": 0.61516,
    "c": 0.15653,
    "h": 266.9
  },
  "luminance": 0.22586
}

Semantic roles & 50–950 ramp

primary
#5A7EE2
secondary
#E5D8B3
accent
#A013D2
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0F16
muted
#7E7E84

Preview Lab

Preview with #5A7EE2

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

Preview Lab → · Contrast checker → · Palette generator →

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