#5A577F#5A577F

#5A577F is a mid, moderate blue. Relative luminance 0.105; OKLCH L 47.6% C 0.064 H 287.1°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#5A577F
RGBrgb(90, 87, 127)
HSLhsl(245, 19%, 42%)
HSVhsv(245, 31%, 50%)
CMYKcmyk(29.1%, 31.5%, 0%, 50.2%)
CIE-LABlab(38.76, 10.92, -22.05)
CIE-LCHlch(38.76, 24.60, 296.35°)
OKLaboklab(47.63% 0.0189 -0.0611)
OKLCHoklch(47.63% 0.064 287.1)
XYZxyz(11.4544, 10.5221, 21.5020)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A577F #7C7F57
analogous
#57687F #5A577F #6E577F
triadic
#5A577F #7F5A57 #577F5A
tetradic
#5A577F #7F5768 #7C7F57 #577F6E
square
#5A577F #7F5768 #7C7F57 #577F6E
split-complementary
#5A577F #7F6E57 #687F57
monochromatic
#272536 #403E5B #5A577F #7774A0 #9A98B8

Accessibility & contrast

On white

6.76
#5A577F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#5A577F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A577F
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A577F#FFFFFF#000000##FFFFFF
##5A577F1.006.763.106.76
#FFFFFF6.761.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C5C81
Deuteranopia (green-blind)
#4B5A7E
Tritanopia (blue-blind)
#515E65
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5a577f;
/* rgb */ color: rgb(90, 87, 127);
/* oklch */ color: oklch(47.6% 0.064 287.1);
Tailwind
colors: {
  custom: {
    50: '#8986a4',
    500: '#5a577f',
    950: '#000000',
  },
}
SCSS
$custom: #5a577f;
$custom-light: #8986a4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a577f",
  "rgb": {
    "r": 90,
    "g": 87,
    "b": 127
  },
  "hsl": {
    "h": 244.5,
    "s": 18.692,
    "l": 41.961
  },
  "oklch": {
    "l": 0.47626,
    "c": 0.06396,
    "h": 287.1
  },
  "luminance": 0.10522
}

Semantic roles & 50–950 ramp

primary
#5A577F
secondary
#A4A68C
accent
#BB6CB5
background
#F8F8FA
surface
#F0EFF4
border
#CBCACE
text
#0B0B0F
muted
#7C7C7F

Preview Lab

Preview with #5A577F

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

Preview Lab → · Contrast checker → · Palette generator →

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