#5A71C7#5A71C7

#5A71C7 is a mid, vivid blue. Relative luminance 0.181; OKLCH L 57.2% C 0.135 H 270.4°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#5A71C7
RGBrgb(90, 113, 199)
HSLhsl(227, 49%, 57%)
HSVhsv(227, 55%, 78%)
CMYKcmyk(54.8%, 43.2%, 0%, 22%)
CIE-LABlab(49.62, 16.63, -47.51)
CIE-LCHlch(49.62, 50.34, 289.29°)
OKLaboklab(57.18% 0.0009 -0.1351)
OKLCHoklch(57.18% 0.135 270.4)
XYZxyz(20.4270, 18.1060, 56.4401)
Luminance0.1811 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A71C7 #C7B05A
analogous
#5AA8C7 #5A71C7 #7A5AC7
triadic
#5A71C7 #C75A71 #71C75A
tetradic
#5A71C7 #C75AA8 #C7B05A #5AC77A
square
#5A71C7 #C75AA8 #C7B05A #5AC77A
split-complementary
#5A71C7 #C77A5A #A8C75A
monochromatic
#2A3C7C #3A51AA #5A71C7 #8898D7 #B5C0E6

Accessibility & contrast

On white

4.54
#5A71C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#5A71C7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A71C7
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A71C7#FFFFFF#000000##000000
##5A71C71.004.544.624.62
#FFFFFF4.541.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C7BCA
Deuteranopia (green-blind)
#3F72C5
Tritanopia (blue-blind)
#1F8492
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5a71c7;
/* rgb */ color: rgb(90, 113, 199);
/* oklch */ color: oklch(57.2% 0.135 270.4);
Tailwind
colors: {
  custom: {
    50: '#9099d8',
    500: '#5a71c7',
    950: '#000000',
  },
}
SCSS
$custom: #5a71c7;
$custom-light: #9099d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a71c7",
  "rgb": {
    "r": 90,
    "g": 113,
    "b": 199
  },
  "hsl": {
    "h": 227.339,
    "s": 49.321,
    "l": 56.667
  },
  "oklch": {
    "l": 0.57177,
    "c": 0.13506,
    "h": 270.4
  },
  "luminance": 0.18107
}

Semantic roles & 50–950 ramp

primary
#5A71C7
secondary
#D5CBA8
accent
#BC4FD9
background
#F9F9FD
surface
#F2F2FA
border
#CCCCD3
text
#0D0D14
muted
#7E7E83

Preview Lab

Preview with #5A71C7

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

Preview Lab → · Contrast checker → · Palette generator →

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