#5178A9#5178A9

#5178A9 is a mid, moderate cyan. Relative luminance 0.180; OKLCH L 56.5% C 0.088 H 254.7°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#5178A9
RGBrgb(81, 120, 169)
HSLhsl(213, 35%, 49%)
HSVhsv(213, 52%, 66%)
CMYKcmyk(52.1%, 29%, 0%, 33.7%)
CIE-LABlab(49.55, 0.64, -30.34)
CIE-LCHlch(49.55, 30.35, 271.21°)
OKLaboklab(56.49% -0.0233 -0.0851)
OKLCHoklch(56.49% 0.088 254.7)
XYZxyz(17.2688, 18.0456, 40.1016)
Luminance0.1805 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178A9 #A98251
analogous
#51A4A9 #5178A9 #5651A9
triadic
#5178A9 #A95178 #78A951
tetradic
#5178A9 #A951A4 #A98251 #51A956
square
#5178A9 #A951A4 #A98251 #51A956
split-complementary
#5178A9 #A95651 #A4A951
monochromatic
#293D56 #3D5B80 #5178A9 #7998BF #A2B7D2

Accessibility & contrast

On white

4.56
#5178A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#5178A9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5178A9
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5178A9#FFFFFF#000000##000000
##5178A91.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#657BAB
Deuteranopia (green-blind)
#5A72A8
Tritanopia (blue-blind)
#248389
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5178a9;
/* rgb */ color: rgb(81, 120, 169);
/* oklch */ color: oklch(56.5% 0.088 254.7);
Tailwind
colors: {
  custom: {
    50: '#879ec2',
    500: '#5178a9',
    950: '#000000',
  },
}
SCSS
$custom: #5178a9;
$custom-light: #879ec2;
$custom-dark: #000000;
JSON
{
  "hex": "#5178a9",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 169
  },
  "hsl": {
    "h": 213.409,
    "s": 35.2,
    "l": 49.02
  },
  "oklch": {
    "l": 0.56486,
    "c": 0.08826,
    "h": 254.7
  },
  "luminance": 0.18047
}

Semantic roles & 50–950 ramp

primary
#5178A9
secondary
#C0AD96
accent
#9A5DCB
background
#F8F9FC
surface
#F0F2F8
border
#CBCCD1
text
#0C0E12
muted
#7D7E81

Preview Lab

Preview with #5178A9

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

Preview Lab → · Contrast checker → · Palette generator →

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