#5A71D7#5A71D7

#5A71D7 is a mid, vivid blue. Relative luminance 0.189; OKLCH L 58.2% C 0.157 H 271.2°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#5A71D7
RGBrgb(90, 113, 215)
HSLhsl(229, 61%, 60%)
HSVhsv(229, 58%, 84%)
CMYKcmyk(58.1%, 47.4%, 0%, 15.7%)
CIE-LABlab(50.56, 21.89, -55.14)
CIE-LCHlch(50.56, 59.33, 291.65°)
OKLaboklab(58.19% 0.0033 -0.1575)
OKLCHoklch(58.19% 0.157 271.2)
XYZxyz(22.3833, 18.8885, 66.7431)
Luminance0.1889 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A71D7 #D7C05A
analogous
#5AB0D7 #5A71D7 #825AD7
triadic
#5A71D7 #D75A71 #71D75A
tetradic
#5A71D7 #D75AB0 #D7C05A #5AD782
square
#5A71D7 #D75AB0 #D7C05A #5AD782
split-complementary
#5A71D7 #D7825A #B0D75A
monochromatic
#243893 #304BC4 #5A71D7 #8B9BE3 #BDC6EF

Accessibility & contrast

On white

4.40
#5A71D7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#5A71D7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A71D7
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A71D7#FFFFFF#000000##000000
##5A71D71.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F7EDB
Deuteranopia (green-blind)
#2C73D5
Tritanopia (blue-blind)
#00889A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #5a71d7;
/* rgb */ color: rgb(90, 113, 215);
/* oklch */ color: oklch(58.2% 0.157 271.2);
Tailwind
colors: {
  custom: {
    50: '#9399e4',
    500: '#5a71d7',
    950: '#000000',
  },
}
SCSS
$custom: #5a71d7;
$custom-light: #9399e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a71d7",
  "rgb": {
    "r": 90,
    "g": 113,
    "b": 215
  },
  "hsl": {
    "h": 228.96,
    "s": 60.976,
    "l": 59.804
  },
  "oklch": {
    "l": 0.58189,
    "c": 0.15749,
    "h": 271.2
  },
  "luminance": 0.1889
}

Semantic roles & 50–950 ramp

primary
#5A71D7
secondary
#DFD6AE
accent
#C744E4
background
#F9F9FE
surface
#F2F2FC
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5A71D7

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

Preview Lab → · Contrast checker → · Palette generator →

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