#5178E5#5178E5

#5178E5 is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.0% C 0.171 H 266.5°. Best body text is #000000 at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#5178E5
RGBrgb(81, 120, 229)
HSLhsl(224, 74%, 61%)
HSVhsv(224, 65%, 90%)
CMYKcmyk(64.6%, 47.6%, 0%, 10.2%)
CIE-LABlab(52.77, 20.69, -59.51)
CIE-LCHlch(52.77, 63.00, 289.17°)
OKLaboklab(60.02% -0.0104 -0.1704)
OKLCHoklch(60.02% 0.171 266.5)
XYZxyz(24.2478, 20.8372, 76.8577)
Luminance0.2084 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178E5 #E5BE51
analogous
#51C2E5 #5178E5 #7451E5
triadic
#5178E5 #E55178 #78E551
tetradic
#5178E5 #E551C2 #E5BE51 #51E574
square
#5178E5 #E551C2 #E5BE51 #51E574
split-complementary
#5178E5 #E57451 #C2E551
monochromatic
#183DA3 #2051D8 #5178E5 #86A1ED #BBCBF5

Accessibility & contrast

On white

4.06
#5178E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.17
#5178E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5178E5#FFFFFF#000000##000000
##5178E51.004.065.175.17
#FFFFFF4.061.0021.0021.00
#0000005.1721.001.001.00
##0000005.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F85E9
Deuteranopia (green-blind)
#1E78E3
Tritanopia (blue-blind)
#0091A3
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5178e5;
/* rgb */ color: rgb(81, 120, 229);
/* oklch */ color: oklch(60.0% 0.171 266.5);
Tailwind
colors: {
  custom: {
    50: '#909eee',
    500: '#5178e5',
    950: '#000000',
  },
}
SCSS
$custom: #5178e5;
$custom-light: #909eee;
$custom-dark: #000000;
JSON
{
  "hex": "#5178e5",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 229
  },
  "hsl": {
    "h": 224.189,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.60021,
    "c": 0.17071,
    "h": 266.5
  },
  "luminance": 0.20839
}

Semantic roles & 50–950 ramp

primary
#5178E5
secondary
#E5D6AD
accent
#A20FD6
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5178E5

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

Preview Lab → · Contrast checker → · Palette generator →

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