#5A71CC#5A71CC

#5A71CC is a mid, vivid blue. Relative luminance 0.183; OKLCH L 57.5% C 0.142 H 270.7°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#5A71CC
RGBrgb(90, 113, 204)
HSLhsl(228, 53%, 58%)
HSVhsv(228, 56%, 80%)
CMYKcmyk(55.9%, 44.6%, 0%, 20%)
CIE-LABlab(49.91, 18.27, -49.92)
CIE-LCHlch(49.91, 53.16, 290.10°)
OKLaboklab(57.49% 0.0018 -0.1421)
OKLCHoklch(57.49% 0.142 270.7)
XYZxyz(21.0171, 18.3420, 59.5479)
Luminance0.1834 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A71CC #CCB55A
analogous
#5AAACC #5A71CC #7C5ACC
triadic
#5A71CC #CC5A71 #71CC5A
tetradic
#5A71CC #CC5AAA #CCB55A #5ACC7C
square
#5A71CC #CC5AAA #CCB55A #5ACC7C
split-complementary
#5A71CC #CC7C5A #AACC5A
monochromatic
#293B83 #3750B2 #5A71CC #8999DA #B7C1E9

Accessibility & contrast

On white

4.50
#5A71CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#5A71CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A71CC
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A71CC#FFFFFF#000000##000000
##5A71CC1.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#487CCF
Deuteranopia (green-blind)
#3A72CA
Tritanopia (blue-blind)
#158594
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5a71cc;
/* rgb */ color: rgb(90, 113, 204);
/* oklch */ color: oklch(57.5% 0.142 270.7);
Tailwind
colors: {
  custom: {
    50: '#9199dc',
    500: '#5a71cc',
    950: '#000000',
  },
}
SCSS
$custom: #5a71cc;
$custom-light: #9199dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5a71cc",
  "rgb": {
    "r": 90,
    "g": 113,
    "b": 204
  },
  "hsl": {
    "h": 227.895,
    "s": 52.778,
    "l": 57.647
  },
  "oklch": {
    "l": 0.57486,
    "c": 0.14213,
    "h": 270.7
  },
  "luminance": 0.18344
}

Semantic roles & 50–950 ramp

primary
#5A71CC
secondary
#D8CFAA
accent
#BF4CDC
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0D0D15
muted
#7E7E83

Preview Lab

Preview with #5A71CC

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

Preview Lab → · Contrast checker → · Palette generator →

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