#5178E7#5178E7

#5178E7 is a mid, vivid blue. Relative luminance 0.210; OKLCH L 60.2% C 0.173 H 266.6°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#5178E7
RGBrgb(81, 120, 231)
HSLhsl(224, 76%, 61%)
HSVhsv(224, 65%, 91%)
CMYKcmyk(64.9%, 48.1%, 0%, 9.4%)
CIE-LABlab(52.89, 21.38, -60.43)
CIE-LCHlch(52.89, 64.10, 289.48°)
OKLaboklab(60.16% -0.0102 -0.1731)
OKLCHoklch(60.16% 0.173 266.6)
XYZxyz(24.5286, 20.9495, 78.3368)
Luminance0.2095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178E7 #E7C051
analogous
#51C3E7 #5178E7 #7551E7
triadic
#5178E7 #E75178 #78E751
tetradic
#5178E7 #E751C3 #E7C051 #51E775
square
#5178E7 #E751C3 #E7C051 #51E775
split-complementary
#5178E7 #E77551 #C3E751
monochromatic
#173CA7 #1E50DC #5178E7 #87A2EE #BDCBF6

Accessibility & contrast

On white

4.05
#5178E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#5178E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5178E7#FFFFFF#000000##000000
##5178E71.004.055.195.19
#FFFFFF4.051.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D85EB
Deuteranopia (green-blind)
#1978E5
Tritanopia (blue-blind)
#0092A4
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5178e7;
/* rgb */ color: rgb(81, 120, 231);
/* oklch */ color: oklch(60.2% 0.173 266.6);
Tailwind
colors: {
  custom: {
    50: '#909eef',
    500: '#5178e7',
    950: '#000000',
  },
}
SCSS
$custom: #5178e7;
$custom-light: #909eef;
$custom-dark: #000000;
JSON
{
  "hex": "#5178e7",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 231
  },
  "hsl": {
    "h": 224.4,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.60155,
    "c": 0.1734,
    "h": 266.6
  },
  "luminance": 0.20952
}

Semantic roles & 50–950 ramp

primary
#5178E7
secondary
#E6D7AE
accent
#A30ED8
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5178E7

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

Preview Lab → · Contrast checker → · Palette generator →

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