#5178D6#5178D6

#5178D6 is a mid, vivid blue. Relative luminance 0.200; OKLCH L 59.0% C 0.150 H 265.2°. Best body text is #000000 at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#5178D6
RGBrgb(81, 120, 214)
HSLhsl(222, 62%, 58%)
HSVhsv(222, 62%, 84%)
CMYKcmyk(62.1%, 43.9%, 0%, 16.1%)
CIE-LABlab(51.88, 15.55, -52.49)
CIE-LCHlch(51.88, 54.74, 286.50°)
OKLaboklab(59.05% -0.0127 -0.1498)
OKLCHoklch(59.05% 0.15 265.2)
XYZxyz(22.2432, 20.0353, 66.3003)
Luminance0.2004 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178D6 #D6AF51
analogous
#51BAD6 #5178D6 #6C51D6
triadic
#5178D6 #D65178 #78D651
tetradic
#5178D6 #D651BA #D6AF51 #51D66C
square
#5178D6 #D651BA #D6AF51 #51D66C
split-complementary
#5178D6 #D66C51 #BAD651
monochromatic
#21408C #2D57BD #5178D6 #839EE2 #B4C5ED

Accessibility & contrast

On white

4.19
#5178D6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.01
#5178D6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5178D6#FFFFFF#000000##000000
##5178D61.004.195.015.01
#FFFFFF4.191.0021.0021.00
#0000005.0121.001.001.00
##0000005.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4C82DA
Deuteranopia (green-blind)
#3776D4
Tritanopia (blue-blind)
#008D9C
Achromatopsia (no color)
#7C7C7C

Design tokens & code

CSS
--color: #5178d6;
/* rgb */ color: rgb(81, 120, 214);
/* oklch */ color: oklch(59.0% 0.150 265.2);
Tailwind
colors: {
  custom: {
    50: '#8e9ee3',
    500: '#5178d6',
    950: '#000000',
  },
}
SCSS
$custom: #5178d6;
$custom-light: #8e9ee3;
$custom-dark: #000000;
JSON
{
  "hex": "#5178d6",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 214
  },
  "hsl": {
    "h": 222.406,
    "s": 61.86,
    "l": 57.843
  },
  "oklch": {
    "l": 0.59049,
    "c": 0.15029,
    "h": 265.2
  },
  "luminance": 0.20037
}

Semantic roles & 50–950 ramp

primary
#5178D6
secondary
#DCCCA7
accent
#B543E5
background
#F9F9FD
surface
#F2F2FB
border
#CCCCD4
text
#0D0E15
muted
#7E7E83

Preview Lab

Preview with #5178D6

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

Preview Lab → · Contrast checker → · Palette generator →

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