#5178F9#5178F9

#5178F9 is a mid, vivid blue. Relative luminance 0.220; OKLCH L 61.4% C 0.197 H 267.6°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#5178F9
RGBrgb(81, 120, 249)
HSLhsl(226, 93%, 65%)
HSVhsv(226, 67%, 98%)
CMYKcmyk(67.5%, 51.8%, 0%, 2.4%)
CIE-LABlab(54.05, 27.58, -68.59)
CIE-LCHlch(54.05, 73.93, 291.90°)
OKLaboklab(61.4% -0.0083 -0.1971)
OKLCHoklch(61.4% 0.197 267.6)
XYZxyz(27.2028, 22.0192, 92.4207)
Luminance0.2202 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178F9 #F9D251
analogous
#51CCF9 #5178F9 #7E51F9
triadic
#5178F9 #F95178 #78F951
tetradic
#5178F9 #F951CC #F9D251 #51F97E
square
#5178F9 #F951CC #F9D251 #51F97E
split-complementary
#5178F9 #F97E51 #CCF951
monochromatic
#0734C9 #164AF7 #5178F9 #8CA6FB #C7D4FD

Accessibility & contrast

On white

3.89
#5178F9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#5178F9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5178F9#FFFFFF#000000##000000
##5178F91.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2289FE
Deuteranopia (green-blind)
#007AF6
Tritanopia (blue-blind)
#0097AD
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5178f9;
/* rgb */ color: rgb(81, 120, 249);
/* oklch */ color: oklch(61.4% 0.197 267.6);
Tailwind
colors: {
  custom: {
    50: '#949efc',
    500: '#5178f9',
    950: '#000000',
  },
}
SCSS
$custom: #5178f9;
$custom-light: #949efc;
$custom-dark: #000000;
JSON
{
  "hex": "#5178f9",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 249
  },
  "hsl": {
    "h": 226.071,
    "s": 93.333,
    "l": 64.706
  },
  "oklch": {
    "l": 0.61398,
    "c": 0.19731,
    "h": 267.6
  },
  "luminance": 0.22022
}

Semantic roles & 50–950 ramp

primary
#5178F9
secondary
#F0E2B6
accent
#B000E6
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0F0E18
muted
#7E7E86

Preview Lab

Preview with #5178F9

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

Preview Lab → · Contrast checker → · Palette generator →

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