#5178A2#5178A2

#5178A2 is a mid, moderate cyan. Relative luminance 0.178; OKLCH L 56.1% C 0.079 H 251.1°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#5178A2
RGBrgb(81, 120, 162)
HSLhsl(211, 33%, 48%)
HSVhsv(211, 50%, 64%)
CMYKcmyk(50%, 25.9%, 0%, 36.5%)
CIE-LABlab(49.24, -1.56, -26.75)
CIE-LCHlch(49.24, 26.79, 266.67°)
OKLaboklab(56.14% -0.0256 -0.0748)
OKLCHoklch(56.14% 0.079 251.1)
XYZxyz(16.6292, 17.7897, 36.7329)
Luminance0.1779 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178A2 #A27B51
analogous
#51A0A2 #5178A2 #5351A2
triadic
#5178A2 #A25178 #78A251
tetradic
#5178A2 #A251A0 #A27B51 #51A253
square
#5178A2 #A251A0 #A27B51 #51A253
split-complementary
#5178A2 #A25351 #A0A251
monochromatic
#283C50 #3D5A79 #5178A2 #7697BA #9FB6CF

Accessibility & contrast

On white

4.61
#5178A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#5178A2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #5178A2
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5178A2#FFFFFF#000000##FFFFFF
##5178A21.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)
#677AA4
Deuteranopia (green-blind)
#5D71A1
Tritanopia (blue-blind)
#2B8286
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #5178a2;
/* rgb */ color: rgb(81, 120, 162);
/* oklch */ color: oklch(56.1% 0.079 251.1);
Tailwind
colors: {
  custom: {
    50: '#879ebd',
    500: '#5178a2',
    950: '#000000',
  },
}
SCSS
$custom: #5178a2;
$custom-light: #879ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#5178a2",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 162
  },
  "hsl": {
    "h": 211.111,
    "s": 33.333,
    "l": 47.647
  },
  "oklch": {
    "l": 0.56139,
    "c": 0.07901,
    "h": 251.1
  },
  "luminance": 0.17791
}

Semantic roles & 50–950 ramp

primary
#5178A2
secondary
#BCA893
accent
#965EC9
background
#F8F9FB
surface
#F0F2F6
border
#CBCCD0
text
#0C0E12
muted
#7D7E81

Preview Lab

Preview with #5178A2

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

Preview Lab → · Contrast checker → · Palette generator →

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