#5A798D#5A798D

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

Color values

HEX#5A798D
RGBrgb(90, 121, 141)
HSLhsl(204, 22%, 45%)
HSVhsv(204, 36%, 55%)
CMYKcmyk(36.2%, 14.2%, 0%, 44.7%)
CIE-LABlab(49.22, -5.84, -14.42)
CIE-LCHlch(49.22, 15.56, 247.96°)
OKLaboklab(55.98% -0.0257 -0.0396)
OKLCHoklch(55.98% 0.047 237)
XYZxyz(15.8600, 17.7707, 27.7885)
Luminance0.1777 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A798D #8D6E5A
analogous
#5A8D87 #5A798D #5A608D
triadic
#5A798D #8D5A79 #798D5A
tetradic
#5A798D #875A8D #8D6E5A #608D5A
square
#5A798D #875A8D #8D6E5A #608D5A
split-complementary
#5A798D #8D5A60 #8D875A
monochromatic
#2A3942 #425968 #5A798D #7A97AA #9FB4C2

Accessibility & contrast

On white

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

On black

4.55
#5A798D on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5A798D#FFFFFF#000000##FFFFFF
##5A798D1.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#70788E
Deuteranopia (green-blind)
#69728D
Tritanopia (blue-blind)
#497E7F
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5a798d;
/* rgb */ color: rgb(90, 121, 141);
/* oklch */ color: oklch(56.0% 0.047 237.0);
Tailwind
colors: {
  custom: {
    50: '#8a9fae',
    500: '#5a798d',
    950: '#000000',
  },
}
SCSS
$custom: #5a798d;
$custom-light: #8a9fae;
$custom-dark: #000000;
JSON
{
  "hex": "#5a798d",
  "rgb": {
    "r": 90,
    "g": 121,
    "b": 141
  },
  "hsl": {
    "h": 203.529,
    "s": 22.078,
    "l": 45.294
  },
  "oklch": {
    "l": 0.55982,
    "c": 0.04726,
    "h": 237
  },
  "luminance": 0.17771
}

Semantic roles & 50–950 ramp

primary
#5A798D
secondary
#B09E93
accent
#8B69BF
background
#F8F9FA
surface
#F0F2F4
border
#CBCCCE
text
#0C0E10
muted
#7D7E7F

Preview Lab

Preview with #5A798D

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

Preview Lab → · Contrast checker → · Palette generator →

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