#5A71DC#5A71DC

#5A71DC is a mid, vivid blue. Relative luminance 0.192; OKLCH L 58.5% C 0.164 H 271.4°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#5A71DC
RGBrgb(90, 113, 220)
HSLhsl(229, 65%, 61%)
HSVhsv(229, 59%, 86%)
CMYKcmyk(59.1%, 48.6%, 0%, 13.7%)
CIE-LABlab(50.86, 23.54, -57.48)
CIE-LCHlch(50.86, 62.12, 292.27°)
OKLaboklab(58.52% 0.0039 -0.1643)
OKLCHoklch(58.52% 0.164 271.4)
XYZxyz(23.0356, 19.1494, 70.1786)
Luminance0.1915 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A71DC #DCC55A
analogous
#5AB2DC #5A71DC #845ADC
triadic
#5A71DC #DC5A71 #71DC5A
tetradic
#5A71DC #DC5AB2 #DCC55A #5ADC84
square
#5A71DC #DC5AB2 #DCC55A #5ADC84
split-complementary
#5A71DC #DC845A #B2DC5A
monochromatic
#21369B #2C48CD #5A71DC #8C9CE7 #BFC8F1

Accessibility & contrast

On white

4.35
#5A71DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#5A71DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A71DC
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A71DC#FFFFFF#000000##000000
##5A71DC1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A7FE0
Deuteranopia (green-blind)
#2374DA
Tritanopia (blue-blind)
#00899C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #5a71dc;
/* rgb */ color: rgb(90, 113, 220);
/* oklch */ color: oklch(58.5% 0.164 271.4);
Tailwind
colors: {
  custom: {
    50: '#9399e7',
    500: '#5a71dc',
    950: '#000000',
  },
}
SCSS
$custom: #5a71dc;
$custom-light: #9399e7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a71dc",
  "rgb": {
    "r": 90,
    "g": 113,
    "b": 220
  },
  "hsl": {
    "h": 229.385,
    "s": 65,
    "l": 60.784
  },
  "oklch": {
    "l": 0.58519,
    "c": 0.16439,
    "h": 271.4
  },
  "luminance": 0.19151
}

Semantic roles & 50–950 ramp

primary
#5A71DC
secondary
#E2D9B0
accent
#AD19CD
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0D16
muted
#7E7E84

Preview Lab

Preview with #5A71DC

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

Preview Lab → · Contrast checker → · Palette generator →

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