#5178A5#5178A5

#5178A5 is a mid, moderate cyan. Relative luminance 0.179; OKLCH L 56.3% C 0.083 H 252.8°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#5178A5
RGBrgb(81, 120, 165)
HSLhsl(212, 34%, 48%)
HSVhsv(212, 51%, 65%)
CMYKcmyk(50.9%, 27.3%, 0%, 35.3%)
CIE-LABlab(49.37, -0.62, -28.29)
CIE-LCHlch(49.37, 28.30, 268.74°)
OKLaboklab(56.29% -0.0246 -0.0792)
OKLCHoklch(56.29% 0.083 252.8)
XYZxyz(16.8990, 17.8976, 38.1541)
Luminance0.1790 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178A5 #A57E51
analogous
#51A2A5 #5178A5 #5451A5
triadic
#5178A5 #A55178 #78A551
tetradic
#5178A5 #A551A2 #A57E51 #51A554
square
#5178A5 #A551A2 #A57E51 #51A554
split-complementary
#5178A5 #A55451 #A2A551
monochromatic
#293C53 #3D5A7C #5178A5 #7797BC #A0B6D0

Accessibility & contrast

On white

4.59
#5178A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#5178A5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5178A5
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5178A5#FFFFFF#000000##FFFFFF
##5178A51.004.594.584.59
#FFFFFF4.591.0021.001.00
#0000004.5821.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#667AA7
Deuteranopia (green-blind)
#5C72A4
Tritanopia (blue-blind)
#288288
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5178a5;
/* rgb */ color: rgb(81, 120, 165);
/* oklch */ color: oklch(56.3% 0.083 252.8);
Tailwind
colors: {
  custom: {
    50: '#879ec0',
    500: '#5178a5',
    950: '#000000',
  },
}
SCSS
$custom: #5178a5;
$custom-light: #879ec0;
$custom-dark: #000000;
JSON
{
  "hex": "#5178a5",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 165
  },
  "hsl": {
    "h": 212.143,
    "s": 34.146,
    "l": 48.235
  },
  "oklch": {
    "l": 0.56286,
    "c": 0.08294,
    "h": 252.8
  },
  "luminance": 0.17899
}

Semantic roles & 50–950 ramp

primary
#5178A5
secondary
#BDAA94
accent
#985ECA
background
#F8F9FB
surface
#F0F2F7
border
#CBCCD0
text
#0C0E12
muted
#7D7E81

Preview Lab

Preview with #5178A5

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

Preview Lab → · Contrast checker → · Palette generator →

#5178A5 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva