#5A71E5#5A71E5

#5A71E5 is a mid, vivid blue. Relative luminance 0.196; OKLCH L 59.1% C 0.177 H 271.6°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#5A71E5
RGBrgb(90, 113, 229)
HSLhsl(230, 73%, 63%)
HSVhsv(230, 61%, 90%)
CMYKcmyk(60.7%, 50.7%, 0%, 10.2%)
CIE-LABlab(51.43, 26.53, -61.64)
CIE-LCHlch(51.43, 67.11, 293.29°)
OKLaboklab(59.13% 0.0048 -0.1766)
OKLCHoklch(59.13% 0.177 271.6)
XYZxyz(24.2597, 19.6391, 76.6258)
Luminance0.1964 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A71E5 #E5CE5A
analogous
#5AB6E5 #5A71E5 #895AE5
triadic
#5A71E5 #E55A71 #71E55A
tetradic
#5A71E5 #E55AB6 #E5CE5A #5AE589
square
#5A71E5 #E55AB6 #E5CE5A #5AE589
split-complementary
#5A71E5 #E5895A #B6E55A
monochromatic
#1B32AA #2544DD #5A71E5 #8F9EED #C4CCF6

Accessibility & contrast

On white

4.26
#5A71E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#5A71E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A71E5
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A71E5#FFFFFF#000000##000000
##5A71E51.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2F81E9
Deuteranopia (green-blind)
#0375E3
Tritanopia (blue-blind)
#008CA0
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5a71e5;
/* rgb */ color: rgb(90, 113, 229);
/* oklch */ color: oklch(59.1% 0.177 271.6);
Tailwind
colors: {
  custom: {
    50: '#9599ee',
    500: '#5a71e5',
    950: '#000000',
  },
}
SCSS
$custom: #5a71e5;
$custom-light: #9599ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5a71e5",
  "rgb": {
    "r": 90,
    "g": 113,
    "b": 229
  },
  "hsl": {
    "h": 230.072,
    "s": 72.775,
    "l": 62.549
  },
  "oklch": {
    "l": 0.59128,
    "c": 0.17665,
    "h": 271.6
  },
  "luminance": 0.19641
}

Semantic roles & 50–950 ramp

primary
#5A71E5
secondary
#E7DEB4
accent
#B411D5
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5A71E5

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

Preview Lab → · Contrast checker → · Palette generator →

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