#5172E6#5172E6

#5172E6 is a mid, vivid blue. Relative luminance 0.195; OKLCH L 58.9% C 0.179 H 268.5°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#5172E6
RGBrgb(81, 114, 230)
HSLhsl(227, 75%, 61%)
HSVhsv(227, 65%, 90%)
CMYKcmyk(64.8%, 50.4%, 0%, 9.8%)
CIE-LABlab(51.26, 24.74, -62.50)
CIE-LCHlch(51.26, 67.22, 291.59°)
OKLaboklab(58.89% -0.0048 -0.1793)
OKLCHoklch(58.89% 0.179 268.5)
XYZxyz(23.6887, 19.4949, 77.3621)
Luminance0.1950 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5172E6 #E6C551
analogous
#51BDE6 #5172E6 #7A51E6
triadic
#5172E6 #E65172 #72E651
tetradic
#5172E6 #E651BD #E6C551 #51E67A
square
#5172E6 #E651BD #E6C551 #51E67A
split-complementary
#5172E6 #E67A51 #BDE651
monochromatic
#1837A5 #1F49DA #5172E6 #879DEE #BCC9F5

Accessibility & contrast

On white

4.29
#5172E6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#5172E6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #5172E6
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5172E6#FFFFFF#000000##000000
##5172E61.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#2E81EA
Deuteranopia (green-blind)
#0074E4
Tritanopia (blue-blind)
#008DA1
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #5172e6;
/* rgb */ color: rgb(81, 114, 230);
/* oklch */ color: oklch(58.9% 0.179 268.5);
Tailwind
colors: {
  custom: {
    50: '#909aef',
    500: '#5172e6',
    950: '#000000',
  },
}
SCSS
$custom: #5172e6;
$custom-light: #909aef;
$custom-dark: #000000;
JSON
{
  "hex": "#5172e6",
  "rgb": {
    "r": 81,
    "g": 114,
    "b": 230
  },
  "hsl": {
    "h": 226.711,
    "s": 74.874,
    "l": 60.98
  },
  "oklch": {
    "l": 0.58893,
    "c": 0.17933,
    "h": 268.5
  },
  "luminance": 0.19497
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5172E6

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

Preview Lab → · Contrast checker → · Palette generator →

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