#5177E5#5177E5

#5177E5 is a mid, vivid blue. Relative luminance 0.206; OKLCH L 59.8% C 0.172 H 266.8°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#5177E5
RGBrgb(81, 119, 229)
HSLhsl(225, 74%, 61%)
HSVhsv(225, 65%, 90%)
CMYKcmyk(64.6%, 48%, 0%, 10.2%)
CIE-LABlab(52.51, 21.30, -59.93)
CIE-LCHlch(52.51, 63.60, 289.57°)
OKLaboklab(59.82% -0.0095 -0.1716)
OKLCHoklch(59.82% 0.172 266.8)
XYZxyz(24.1281, 20.5979, 76.8178)
Luminance0.2060 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5177E5 #E5BF51
analogous
#51C1E5 #5177E5 #7551E5
triadic
#5177E5 #E55177 #77E551
tetradic
#5177E5 #E551C1 #E5BF51 #51E575
square
#5177E5 #E551C1 #E5BF51 #51E575
split-complementary
#5177E5 #E57551 #C1E551
monochromatic
#183CA3 #2050D8 #5177E5 #86A1ED #BBCAF5

Accessibility & contrast

On white

4.10
#5177E5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#5177E5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5177E5
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5177E5#FFFFFF#000000##000000
##5177E51.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3D84E9
Deuteranopia (green-blind)
#1A77E3
Tritanopia (blue-blind)
#0090A3
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #5177e5;
/* rgb */ color: rgb(81, 119, 229);
/* oklch */ color: oklch(59.8% 0.172 266.8);
Tailwind
colors: {
  custom: {
    50: '#909dee',
    500: '#5177e5',
    950: '#000000',
  },
}
SCSS
$custom: #5177e5;
$custom-light: #909dee;
$custom-dark: #000000;
JSON
{
  "hex": "#5177e5",
  "rgb": {
    "r": 81,
    "g": 119,
    "b": 229
  },
  "hsl": {
    "h": 224.595,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.59819,
    "c": 0.17191,
    "h": 266.8
  },
  "luminance": 0.206
}

Semantic roles & 50–950 ramp

primary
#5177E5
secondary
#E5D7AD
accent
#A30FD6
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5177E5

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

Preview Lab → · Contrast checker → · Palette generator →

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