#5A71CF#5A71CF

#5A71CF is a mid, vivid blue. Relative luminance 0.185; OKLCH L 57.7% C 0.146 H 270.9°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#5A71CF
RGBrgb(90, 113, 207)
HSLhsl(228, 55%, 58%)
HSVhsv(228, 57%, 81%)
CMYKcmyk(56.5%, 45.4%, 0%, 18.8%)
CIE-LABlab(50.08, 19.25, -51.35)
CIE-LCHlch(50.08, 54.84, 290.55°)
OKLaboklab(57.68% 0.0022 -0.1463)
OKLCHoklch(57.68% 0.146 270.9)
XYZxyz(21.3803, 18.4873, 61.4611)
Luminance0.1849 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A71CF #CFB85A
analogous
#5AABCF #5A71CF #7D5ACF
triadic
#5A71CF #CF5A71 #71CF5A
tetradic
#5A71CF #CF5AAB #CFB85A #5ACF7D
square
#5A71CF #CF5AAB #CFB85A #5ACF7D
split-complementary
#5A71CF #CF7D5A #ABCF5A
monochromatic
#273A87 #354FB7 #5A71CF #899ADD #B9C3EB

Accessibility & contrast

On white

4.47
#5A71CF on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#5A71CF on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A71CF
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A71CF#FFFFFF#000000##000000
##5A71CF1.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#467DD3
Deuteranopia (green-blind)
#3672CD
Tritanopia (blue-blind)
#0D8696
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #5a71cf;
/* rgb */ color: rgb(90, 113, 207);
/* oklch */ color: oklch(57.7% 0.146 270.9);
Tailwind
colors: {
  custom: {
    50: '#9199de',
    500: '#5a71cf',
    950: '#000000',
  },
}
SCSS
$custom: #5a71cf;
$custom-light: #9199de;
$custom-dark: #000000;
JSON
{
  "hex": "#5a71cf",
  "rgb": {
    "r": 90,
    "g": 113,
    "b": 207
  },
  "hsl": {
    "h": 228.205,
    "s": 54.93,
    "l": 58.235
  },
  "oklch": {
    "l": 0.57675,
    "c": 0.14635,
    "h": 270.9
  },
  "luminance": 0.18489
}

Semantic roles & 50–950 ramp

primary
#5A71CF
secondary
#DAD1AB
accent
#C14ADE
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0E0D15
muted
#7E7E83

Preview Lab

Preview with #5A71CF

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

Preview Lab → · Contrast checker → · Palette generator →

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