#5173E6#5173E6

#5173E6 is a mid, vivid blue. Relative luminance 0.197; OKLCH L 59.1% C 0.178 H 268.2°. Best body text is #000000 at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#5173E6
RGBrgb(81, 115, 230)
HSLhsl(226, 75%, 61%)
HSVhsv(226, 65%, 90%)
CMYKcmyk(64.8%, 50%, 0%, 9.8%)
CIE-LABlab(51.52, 24.12, -62.08)
CIE-LCHlch(51.52, 66.60, 291.23°)
OKLaboklab(59.09% -0.0057 -0.178)
OKLCHoklch(59.09% 0.178 268.2)
XYZxyz(23.8021, 19.7218, 77.3999)
Luminance0.1972 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5173E6 #E6C451
analogous
#51BDE6 #5173E6 #7951E6
triadic
#5173E6 #E65173 #73E651
tetradic
#5173E6 #E651BD #E6C451 #51E679
square
#5173E6 #E651BD #E6C451 #51E679
split-complementary
#5173E6 #E67951 #BDE651
monochromatic
#1838A5 #1F4ADA #5173E6 #879EEE #BCC9F5

Accessibility & contrast

On white

4.25
#5173E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.94
#5173E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5173E6
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5173E6#FFFFFF#000000##000000
##5173E61.004.254.944.94
#FFFFFF4.251.0021.0021.00
#0000004.9421.001.001.00
##0000004.9421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3182EA
Deuteranopia (green-blind)
#0074E4
Tritanopia (blue-blind)
#008EA2
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #5173e6;
/* rgb */ color: rgb(81, 115, 230);
/* oklch */ color: oklch(59.1% 0.178 268.2);
Tailwind
colors: {
  custom: {
    50: '#909aef',
    500: '#5173e6',
    950: '#000000',
  },
}
SCSS
$custom: #5173e6;
$custom-light: #909aef;
$custom-dark: #000000;
JSON
{
  "hex": "#5173e6",
  "rgb": {
    "r": 81,
    "g": 115,
    "b": 230
  },
  "hsl": {
    "h": 226.309,
    "s": 74.874,
    "l": 60.98
  },
  "oklch": {
    "l": 0.5909,
    "c": 0.17812,
    "h": 268.2
  },
  "luminance": 0.19724
}

Semantic roles & 50–950 ramp

primary
#5173E6
secondary
#E5D9AD
accent
#A90ED7
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E16
muted
#7E7E84

Preview Lab

Preview with #5173E6

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

Preview Lab → · Contrast checker → · Palette generator →

#5173E6 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva