#5A71E7#5A71E7

#5A71E7 is a mid, vivid blue. Relative luminance 0.198; OKLCH L 59.3% C 0.179 H 271.6°. Best body text is #000000 at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#5A71E7
RGBrgb(90, 113, 231)
HSLhsl(230, 75%, 63%)
HSVhsv(230, 61%, 91%)
CMYKcmyk(61%, 51.1%, 0%, 9.4%)
CIE-LABlab(51.55, 27.20, -62.56)
CIE-LCHlch(51.55, 68.22, 293.50°)
OKLaboklab(59.27% 0.005 -0.1793)
OKLCHoklch(59.27% 0.179 271.6)
XYZxyz(24.5406, 19.7514, 78.1050)
Luminance0.1975 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A71E7 #E7D05A
analogous
#5AB7E7 #5A71E7 #8A5AE7
triadic
#5A71E7 #E75A71 #71E75A
tetradic
#5A71E7 #E75AB7 #E7D05A #5AE78A
square
#5A71E7 #E75AB7 #E7D05A #5AE78A
split-complementary
#5A71E7 #E78A5A #B7E75A
monochromatic
#1931AD #2543DF #5A71E7 #8F9FEF #C5CDF7

Accessibility & contrast

On white

4.24
#5A71E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.95
#5A71E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A71E7
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A71E7#FFFFFF#000000##000000
##5A71E71.004.244.954.95
#FFFFFF4.241.0021.0021.00
#0000004.9521.001.001.00
##0000004.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#2C81EB
Deuteranopia (green-blind)
#0075E5
Tritanopia (blue-blind)
#008CA1
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5a71e7;
/* rgb */ color: rgb(90, 113, 231);
/* oklch */ color: oklch(59.3% 0.179 271.6);
Tailwind
colors: {
  custom: {
    50: '#9599ef',
    500: '#5a71e7',
    950: '#000000',
  },
}
SCSS
$custom: #5a71e7;
$custom-light: #9599ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5a71e7",
  "rgb": {
    "r": 90,
    "g": 113,
    "b": 231
  },
  "hsl": {
    "h": 230.213,
    "s": 74.603,
    "l": 62.941
  },
  "oklch": {
    "l": 0.59266,
    "c": 0.17935,
    "h": 271.6
  },
  "luminance": 0.19753
}

Semantic roles & 50–950 ramp

primary
#5A71E7
secondary
#E8DFB5
accent
#B60FD7
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #5A71E7

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

Preview Lab → · Contrast checker → · Palette generator →

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