#5178AA#5178AA

#5178AA is a mid, moderate cyan. Relative luminance 0.181; OKLCH L 56.5% C 0.090 H 255.1°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#5178AA
RGBrgb(81, 120, 170)
HSLhsl(214, 35%, 49%)
HSVhsv(214, 52%, 67%)
CMYKcmyk(52.4%, 29.4%, 0%, 33.3%)
CIE-LABlab(49.60, 0.96, -30.85)
CIE-LCHlch(49.60, 30.87, 271.78°)
OKLaboklab(56.54% -0.023 -0.0866)
OKLCHoklch(56.54% 0.09 255.1)
XYZxyz(17.3630, 18.0832, 40.5979)
Luminance0.1809 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178AA #AA8351
analogous
#51A5AA #5178AA #5751AA
triadic
#5178AA #AA5178 #78AA51
tetradic
#5178AA #AA51A5 #AA8351 #51AA57
square
#5178AA #AA51A5 #AA8351 #51AA57
split-complementary
#5178AA #AA5751 #A5AA51
monochromatic
#2A3D57 #3D5B81 #5178AA #7998BF #A2B8D3

Accessibility & contrast

On white

4.55
#5178AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#5178AA on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5178AA#FFFFFF#000000##000000
##5178AA1.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#647BAC
Deuteranopia (green-blind)
#5972A9
Tritanopia (blue-blind)
#23838A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #5178aa;
/* rgb */ color: rgb(81, 120, 170);
/* oklch */ color: oklch(56.5% 0.090 255.1);
Tailwind
colors: {
  custom: {
    50: '#879ec3',
    500: '#5178aa',
    950: '#000000',
  },
}
SCSS
$custom: #5178aa;
$custom-light: #879ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#5178aa",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 170
  },
  "hsl": {
    "h": 213.708,
    "s": 35.458,
    "l": 49.216
  },
  "oklch": {
    "l": 0.56537,
    "c": 0.08961,
    "h": 255.1
  },
  "luminance": 0.18085
}

Semantic roles & 50–950 ramp

primary
#5178AA
secondary
#C0AE97
accent
#9B5CCB
background
#F8F9FC
surface
#F0F2F8
border
#CBCCD1
text
#0C0E12
muted
#7D7E81

Preview Lab

Preview with #5178AA

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

Preview Lab → · Contrast checker → · Palette generator →

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