#5178FD#5178FD

#5178FD is a mid, highly saturated blue. Relative luminance 0.223; OKLCH L 61.7% C 0.203 H 267.7°. Best body text is #000000 at 5.45:1 contrast (WCAG AA passes).

Color values

HEX#5178FD
RGBrgb(81, 120, 253)
HSLhsl(226, 98%, 65%)
HSVhsv(226, 68%, 99%)
CMYKcmyk(68%, 52.6%, 0%, 0.8%)
CIE-LABlab(54.31, 28.95, -70.38)
CIE-LCHlch(54.31, 76.10, 292.36°)
OKLaboklab(61.68% -0.008 -0.2024)
OKLCHoklch(61.68% 0.203 267.7)
XYZxyz(27.8333, 22.2714, 95.7414)
Luminance0.2227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5178FD #FDD651
analogous
#51CEFD #5178FD #8051FD
triadic
#5178FD #FD5178 #78FD51
tetradic
#5178FD #FD51CE #FDD651 #51FD80
square
#5178FD #FD51CE #FDD651 #51FD80
split-complementary
#5178FD #FD8051 #CEFD51
monochromatic
#0231D1 #1449FC #5178FD #8EA7FE #CAD6FE

Accessibility & contrast

On white

3.85
#5178FD on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.45
#5178FD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5178FD
5.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5178FD#FFFFFF#000000##000000
##5178FD1.003.855.455.45
#FFFFFF3.851.0021.0021.00
#0000005.4521.001.001.00
##0000005.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#188AFF
Deuteranopia (green-blind)
#007AFA
Tritanopia (blue-blind)
#0098AF
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #5178fd;
/* rgb */ color: rgb(81, 120, 253);
/* oklch */ color: oklch(61.7% 0.203 267.7);
Tailwind
colors: {
  custom: {
    50: '#949eff',
    500: '#5178fd',
    950: '#000000',
  },
}
SCSS
$custom: #5178fd;
$custom-light: #949eff;
$custom-dark: #000000;
JSON
{
  "hex": "#5178fd",
  "rgb": {
    "r": 81,
    "g": 120,
    "b": 253
  },
  "hsl": {
    "h": 226.395,
    "s": 97.727,
    "l": 65.49
  },
  "oklch": {
    "l": 0.61684,
    "c": 0.20253,
    "h": 267.7
  },
  "luminance": 0.22274
}

Semantic roles & 50–950 ramp

primary
#5178FD
secondary
#F2E5B8
accent
#B100E6
background
#FAF9FF
surface
#F3F2FF
border
#CDCCD7
text
#0F0E18
muted
#7F7E86

Preview Lab

Preview with #5178FD

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

Preview Lab → · Contrast checker → · Palette generator →

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