#5A71E4#5A71E4

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

Color values

HEX#5A71E4
RGBrgb(90, 113, 228)
HSLhsl(230, 72%, 62%)
HSVhsv(230, 61%, 89%)
CMYKcmyk(60.5%, 50.4%, 0%, 10.6%)
CIE-LABlab(51.36, 26.20, -61.18)
CIE-LCHlch(51.36, 66.56, 293.18°)
OKLaboklab(59.06% 0.0047 -0.1752)
OKLCHoklch(59.06% 0.175 271.5)
XYZxyz(24.1205, 19.5834, 75.8926)
Luminance0.1958 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A71E4 #E4CD5A
analogous
#5AB6E4 #5A71E4 #885AE4
triadic
#5A71E4 #E45A71 #71E45A
tetradic
#5A71E4 #E45AB6 #E4CD5A #5AE488
square
#5A71E4 #E45AB6 #E4CD5A #5AE488
split-complementary
#5A71E4 #E4885A #B6E45A
monochromatic
#1C33A8 #2544DB #5A71E4 #8F9EED #C3CCF5

Accessibility & contrast

On white

4.27
#5A71E4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#5A71E4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A71E4
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A71E4#FFFFFF#000000##000000
##5A71E41.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3181E8
Deuteranopia (green-blind)
#0975E2
Tritanopia (blue-blind)
#008BA0
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5a71e4;
/* rgb */ color: rgb(90, 113, 228);
/* oklch */ color: oklch(59.1% 0.175 271.5);
Tailwind
colors: {
  custom: {
    50: '#9599ed',
    500: '#5a71e4',
    950: '#000000',
  },
}
SCSS
$custom: #5a71e4;
$custom-light: #9599ed;
$custom-dark: #000000;
JSON
{
  "hex": "#5a71e4",
  "rgb": {
    "r": 90,
    "g": 113,
    "b": 228
  },
  "hsl": {
    "h": 230,
    "s": 71.875,
    "l": 62.353
  },
  "oklch": {
    "l": 0.59059,
    "c": 0.17529,
    "h": 271.5
  },
  "luminance": 0.19585
}

Semantic roles & 50–950 ramp

primary
#5A71E4
secondary
#E6DEB4
accent
#B412D4
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5A71E4

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

Preview Lab → · Contrast checker → · Palette generator →

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