#5172E7#5172E7

#5172E7 is a mid, vivid blue. Relative luminance 0.196; OKLCH L 59.0% C 0.181 H 268.5°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#5172E7
RGBrgb(81, 114, 231)
HSLhsl(227, 76%, 61%)
HSVhsv(227, 65%, 91%)
CMYKcmyk(64.9%, 50.6%, 0%, 9.4%)
CIE-LABlab(51.33, 25.08, -62.95)
CIE-LCHlch(51.33, 67.77, 291.72°)
OKLaboklab(58.96% -0.0047 -0.1806)
OKLCHoklch(58.96% 0.181 268.5)
XYZxyz(23.8295, 19.5513, 78.1038)
Luminance0.1955 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5172E7 #E7C651
analogous
#51BDE7 #5172E7 #7B51E7
triadic
#5172E7 #E75172 #72E751
tetradic
#5172E7 #E751BD #E7C651 #51E77B
square
#5172E7 #E751BD #E7C651 #51E77B
split-complementary
#5172E7 #E77B51 #BDE751
monochromatic
#1737A7 #1E48DC #5172E7 #879EEE #BDC9F6

Accessibility & contrast

On white

4.28
#5172E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#5172E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5172E7
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5172E7#FFFFFF#000000##000000
##5172E71.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#2D81EB
Deuteranopia (green-blind)
#0074E5
Tritanopia (blue-blind)
#008DA2
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5172e7;
/* rgb */ color: rgb(81, 114, 231);
/* oklch */ color: oklch(59.0% 0.181 268.5);
Tailwind
colors: {
  custom: {
    50: '#919aef',
    500: '#5172e7',
    950: '#000000',
  },
}
SCSS
$custom: #5172e7;
$custom-light: #919aef;
$custom-dark: #000000;
JSON
{
  "hex": "#5172e7",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 231
  },
  "hsl": {
    "h": 226.8,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.58963,
    "c": 0.18068,
    "h": 268.5
  },
  "luminance": 0.19553
}

Semantic roles & 50–950 ramp

primary
#5172E7
secondary
#E6DAAE
accent
#AB0ED8
background
#F9F9FE
surface
#F2F2FD
border
#CCCCD5
text
#0E0E17
muted
#7E7E85

Preview Lab

Preview with #5172E7

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

Preview Lab → · Contrast checker → · Palette generator →

#5172E7 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva