#5178C8#5178C8

#5178C8 is a mid, vivid blue. Relative luminance 0.194; OKLCH L 58.2% C 0.131 H 263.3°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#5178C8
RGBrgb(81, 120, 200)
HSLhsl(220, 52%, 55%)
HSVhsv(220, 60%, 78%)
CMYKcmyk(59.5%, 40%, 0%, 21.6%)
CIE-LABlab(51.09, 10.80, -45.78)
CIE-LCHlch(51.09, 47.03, 283.28°)
OKLaboklab(58.19% -0.0153 -0.1301)
OKLCHoklch(58.19% 0.131 263.3)
XYZxyz(20.5315, 19.3507, 57.2855)
Luminance0.1935 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178C8 #C8A151
analogous
#51B4C8 #5178C8 #6551C8
triadic
#5178C8 #C85178 #78C851
tetradic
#5178C8 #C851B4 #C8A151 #51C865
square
#5178C8 #C851B4 #C8A151 #51C865
split-complementary
#5178C8 #C86551 #B4C851
monochromatic
#264179 #355AA7 #5178C8 #809CD7 #AEC0E5

Accessibility & contrast

On white

4.31
#5178C8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#5178C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5178C8#FFFFFF#000000##000000
##5178C81.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5580CB
Deuteranopia (green-blind)
#4575C6
Tritanopia (blue-blind)
#008A96
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5178c8;
/* rgb */ color: rgb(81, 120, 200);
/* oklch */ color: oklch(58.2% 0.131 263.3);
Tailwind
colors: {
  custom: {
    50: '#8b9ed9',
    500: '#5178c8',
    950: '#000000',
  },
}
SCSS
$custom: #5178c8;
$custom-light: #8b9ed9;
$custom-dark: #000000;
JSON
{
  "hex": "#5178c8",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 200
  },
  "hsl": {
    "h": 220.336,
    "s": 51.965,
    "l": 55.098
  },
  "oklch": {
    "l": 0.58192,
    "c": 0.13097,
    "h": 263.3
  },
  "luminance": 0.19352
}

Semantic roles & 50–950 ramp

primary
#5178C8
secondary
#D3C3A1
accent
#AD4CDB
background
#F9F9FD
surface
#F1F2FA
border
#CBCCD3
text
#0D0E14
muted
#7E7E83

Preview Lab

Preview with #5178C8

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

Preview Lab → · Contrast checker → · Palette generator →

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