#5A7BE2#5A7BE2

#5A7BE2 is a mid, vivid blue. Relative luminance 0.218; OKLCH L 60.9% C 0.160 H 268.1°. Best body text is #000000 at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#5A7BE2
RGBrgb(90, 123, 226)
HSLhsl(225, 70%, 62%)
HSVhsv(225, 60%, 89%)
CMYKcmyk(60.2%, 45.6%, 0%, 11.4%)
CIE-LABlab(53.84, 19.40, -56.08)
CIE-LCHlch(53.84, 59.34, 289.08°)
OKLaboklab(60.91% -0.0054 -0.1601)
OKLCHoklch(60.91% 0.16 268.1)
XYZxyz(25.0222, 21.8285, 74.8315)
Luminance0.2183 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A7BE2 #E2C15A
analogous
#5ABFE2 #5A7BE2 #7D5AE2
triadic
#5A7BE2 #E25A7B #7BE25A
tetradic
#5A7BE2 #E25ABF #E2C15A #5AE27D
square
#5A7BE2 #E25ABF #E2C15A #5AE27D
split-complementary
#5A7BE2 #E27D5A #BFE25A
monochromatic
#1D3EA5 #2651D9 #5A7BE2 #8EA5EB #C2CEF4

Accessibility & contrast

On white

3.91
#5A7BE2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.37
#5A7BE2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A7BE2
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A7BE2#FFFFFF#000000##000000
##5A7BE21.003.915.375.37
#FFFFFF3.911.0021.0021.00
#0000005.3721.001.001.00
##0000005.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4A87E6
Deuteranopia (green-blind)
#347BE0
Tritanopia (blue-blind)
#0092A3
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5a7be2;
/* rgb */ color: rgb(90, 123, 226);
/* oklch */ color: oklch(60.9% 0.160 268.1);
Tailwind
colors: {
  custom: {
    50: '#94a0ec',
    500: '#5a7be2',
    950: '#000000',
  },
}
SCSS
$custom: #5a7be2;
$custom-light: #94a0ec;
$custom-dark: #000000;
JSON
{
  "hex": "#5a7be2",
  "rgb": {
    "r": 90,
    "g": 123,
    "b": 226
  },
  "hsl": {
    "h": 225.441,
    "s": 70.103,
    "l": 61.961
  },
  "oklch": {
    "l": 0.60907,
    "c": 0.16018,
    "h": 268.1
  },
  "luminance": 0.21831
}

Semantic roles & 50–950 ramp

primary
#5A7BE2
secondary
#E5D9B3
accent
#A413D2
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5A7BE2

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

Preview Lab → · Contrast checker → · Palette generator →

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