#5176ED#5176ED

#5176ED is a mid, vivid blue. Relative luminance 0.208; OKLCH L 60.2% C 0.184 H 267.6°. Best body text is #000000 at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#5176ED
RGBrgb(81, 118, 237)
HSLhsl(226, 81%, 62%)
HSVhsv(226, 66%, 93%)
CMYKcmyk(65.8%, 50.2%, 0%, 7.1%)
CIE-LABlab(52.75, 24.67, -64.02)
CIE-LCHlch(52.75, 68.61, 291.08°)
OKLaboklab(60.17% -0.0077 -0.1837)
OKLCHoklch(60.17% 0.184 267.6)
XYZxyz(25.1526, 20.8182, 82.7971)
Luminance0.2082 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5176ED #EDC851
analogous
#51C4ED #5176ED #7A51ED
triadic
#5176ED #ED5176 #76ED51
tetradic
#5176ED #ED51C4 #EDC851 #51ED7A
square
#5176ED #ED51C4 #EDC851 #51ED7A
split-complementary
#5176ED #ED7A51 #C4ED51
monochromatic
#1238B1 #1A4AE7 #5176ED #88A2F3 #C0CDF8

Accessibility & contrast

On white

4.07
#5176ED on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.16
#5176ED on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5176ED
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5176ED#FFFFFF#000000##000000
##5176ED1.004.075.165.16
#FFFFFF4.071.0021.0021.00
#0000005.1621.001.001.00
##0000005.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3085F1
Deuteranopia (green-blind)
#0077EB
Tritanopia (blue-blind)
#0092A6
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #5176ed;
/* rgb */ color: rgb(81, 118, 237);
/* oklch */ color: oklch(60.2% 0.184 267.6);
Tailwind
colors: {
  custom: {
    50: '#929df4',
    500: '#5176ed',
    950: '#000000',
  },
}
SCSS
$custom: #5176ed;
$custom-light: #929df4;
$custom-dark: #000000;
JSON
{
  "hex": "#5176ed",
  "rgb": {
    "r": 81,
    "g": 118,
    "b": 237
  },
  "hsl": {
    "h": 225.769,
    "s": 81.25,
    "l": 62.353
  },
  "oklch": {
    "l": 0.60166,
    "c": 0.18385,
    "h": 267.6
  },
  "luminance": 0.20821
}

Semantic roles & 50–950 ramp

primary
#5176ED
secondary
#E9DCB0
accent
#AB08DE
background
#F9F9FF
surface
#F2F2FE
border
#CCCCD6
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5176ED

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

Preview Lab → · Contrast checker → · Palette generator →

#5176ED Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva