#5178F7#5178F7

#5178F7 is a mid, vivid blue. Relative luminance 0.219; OKLCH L 61.3% C 0.195 H 267.5°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#5178F7
RGBrgb(81, 120, 247)
HSLhsl(226, 91%, 64%)
HSVhsv(226, 67%, 97%)
CMYKcmyk(67.2%, 51.4%, 0%, 3.1%)
CIE-LABlab(53.92, 26.89, -67.70)
CIE-LCHlch(53.92, 72.84, 291.66°)
OKLaboklab(61.26% -0.0085 -0.1945)
OKLCHoklch(61.26% 0.195 267.5)
XYZxyz(26.8925, 21.8950, 90.7866)
Luminance0.2190 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178F7 #F7D051
analogous
#51CBF7 #5178F7 #7D51F7
triadic
#5178F7 #F75178 #78F751
tetradic
#5178F7 #F751CB #F7D051 #51F77D
square
#5178F7 #F751CB #F7D051 #51F77D
split-complementary
#5178F7 #F77D51 #CBF751
monochromatic
#0935C5 #164BF4 #5178F7 #8CA5FA #C6D3FC

Accessibility & contrast

On white

3.90
#5178F7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#5178F7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5178F7
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5178F7#FFFFFF#000000##000000
##5178F71.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2689FC
Deuteranopia (green-blind)
#007AF4
Tritanopia (blue-blind)
#0096AC
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #5178f7;
/* rgb */ color: rgb(81, 120, 247);
/* oklch */ color: oklch(61.3% 0.195 267.5);
Tailwind
colors: {
  custom: {
    50: '#939efb',
    500: '#5178f7',
    950: '#000000',
  },
}
SCSS
$custom: #5178f7;
$custom-light: #939efb;
$custom-dark: #000000;
JSON
{
  "hex": "#5178f7",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 247
  },
  "hsl": {
    "h": 225.904,
    "s": 91.209,
    "l": 64.314
  },
  "oklch": {
    "l": 0.61257,
    "c": 0.19469,
    "h": 267.5
  },
  "luminance": 0.21898
}

Semantic roles & 50–950 ramp

primary
#5178F7
secondary
#EFE1B5
accent
#B000E6
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0F0E17
muted
#7E7E85

Preview Lab

Preview with #5178F7

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

Preview Lab → · Contrast checker → · Palette generator →

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