#5A798E#5A798E

#5A798E is a mid, muted cyan. Relative luminance 0.178; OKLCH L 56.0% C 0.048 H 238.4°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#5A798E
RGBrgb(90, 121, 142)
HSLhsl(204, 22%, 45%)
HSVhsv(204, 37%, 56%)
CMYKcmyk(36.6%, 14.8%, 0%, 44.3%)
CIE-LABlab(49.25, -5.56, -14.95)
CIE-LCHlch(49.25, 15.95, 249.59°)
OKLaboklab(56.02% -0.0253 -0.0411)
OKLCHoklch(56.02% 0.048 238.4)
XYZxyz(15.9347, 17.8006, 28.1822)
Luminance0.1780 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A798E #8E6F5A
analogous
#5A8E89 #5A798E #5A5F8E
triadic
#5A798E #8E5A79 #798E5A
tetradic
#5A798E #895A8E #8E6F5A #5F8E5A
square
#5A798E #895A8E #8E6F5A #5F8E5A
split-complementary
#5A798E #8E5A5F #8E895A
monochromatic
#2B3943 #425969 #5A798E #7A97AB #A0B5C3

Accessibility & contrast

On white

4.61
#5A798E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#5A798E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5A798E
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A798E#FFFFFF#000000##FFFFFF
##5A798E1.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#70788F
Deuteranopia (green-blind)
#69738E
Tritanopia (blue-blind)
#487E80
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5a798e;
/* rgb */ color: rgb(90, 121, 142);
/* oklch */ color: oklch(56.0% 0.048 238.4);
Tailwind
colors: {
  custom: {
    50: '#8a9faf',
    500: '#5a798e',
    950: '#000000',
  },
}
SCSS
$custom: #5a798e;
$custom-light: #8a9faf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a798e",
  "rgb": {
    "r": 90,
    "g": 121,
    "b": 142
  },
  "hsl": {
    "h": 204.231,
    "s": 22.414,
    "l": 45.49
  },
  "oklch": {
    "l": 0.56023,
    "c": 0.04831,
    "h": 238.4
  },
  "luminance": 0.17801
}

Semantic roles & 50–950 ramp

primary
#5A798E
secondary
#B19F93
accent
#8C69BF
background
#F8F9FA
surface
#F0F2F4
border
#CBCCCE
text
#0C0E10
muted
#7D7E7F

Preview Lab

Preview with #5A798E

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

Preview Lab → · Contrast checker → · Palette generator →

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