#5A799C#5A799C

#5A799C is a mid, moderate cyan. Relative luminance 0.182; OKLCH L 56.6% C 0.065 H 252.0°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#5A799C
RGBrgb(90, 121, 156)
HSLhsl(212, 27%, 48%)
HSVhsv(212, 42%, 61%)
CMYKcmyk(42.3%, 22.4%, 0%, 38.8%)
CIE-LABlab(49.80, -1.60, -22.34)
CIE-LCHlch(49.80, 22.40, 265.91°)
OKLaboklab(56.63% -0.0202 -0.062)
OKLCHoklch(56.63% 0.065 252)
XYZxyz(17.0526, 18.2477, 34.0697)
Luminance0.1825 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A799C #9C7D5A
analogous
#5A9A9C #5A799C #5C5A9C
triadic
#5A799C #9C5A79 #799C5A
tetradic
#5A799C #9C5A9A #9C7D5A #5A9C5C
square
#5A799C #9C5A9A #9C7D5A #5A9C5C
split-complementary
#5A799C #9C5C5A #9A9C5A
monochromatic
#2D3D4E #445B75 #5A799C #7E98B5 #A5B7CB

Accessibility & contrast

On white

4.52
#5A799C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#5A799C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5A799C
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A799C#FFFFFF#000000##000000
##5A799C1.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6C7A9E
Deuteranopia (green-blind)
#64739B
Tritanopia (blue-blind)
#428185
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5a799c;
/* rgb */ color: rgb(90, 121, 156);
/* oklch */ color: oklch(56.6% 0.065 252.0);
Tailwind
colors: {
  custom: {
    50: '#8b9fb9',
    500: '#5a799c',
    950: '#000000',
  },
}
SCSS
$custom: #5a799c;
$custom-light: #8b9fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a799c",
  "rgb": {
    "r": 90,
    "g": 121,
    "b": 156
  },
  "hsl": {
    "h": 211.818,
    "s": 26.829,
    "l": 48.235
  },
  "oklch": {
    "l": 0.56629,
    "c": 0.06521,
    "h": 252
  },
  "luminance": 0.18249
}

Semantic roles & 50–950 ramp

primary
#5A799C
secondary
#B9AA99
accent
#9765C3
background
#F8F9FB
surface
#F0F2F6
border
#CBCCD0
text
#0C0E11
muted
#7D7E80

Preview Lab

Preview with #5A799C

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

Preview Lab → · Contrast checker → · Palette generator →

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