#5168E7#5168E7

#5168E7 is a mid, vivid blue. Relative luminance 0.174; OKLCH L 57.0% C 0.193 H 271.2°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#5168E7
RGBrgb(81, 104, 231)
HSLhsl(231, 76%, 61%)
HSVhsv(231, 65%, 91%)
CMYKcmyk(64.9%, 55%, 0%, 9.4%)
CIE-LABlab(48.78, 31.27, -67.07)
CIE-LCHlch(48.78, 74.00, 295.00°)
OKLaboklab(57.05% 0.0041 -0.1928)
OKLCHoklch(57.05% 0.193 271.2)
XYZxyz(22.7626, 17.4174, 77.7481)
Luminance0.1742 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5168E7 #E7D051
analogous
#51B3E7 #5168E7 #8551E7
triadic
#5168E7 #E75168 #68E751
tetradic
#5168E7 #E751B3 #E7D051 #51E785
square
#5168E7 #E751B3 #E7D051 #51E785
split-complementary
#5168E7 #E78551 #B3E751
monochromatic
#172DA7 #1E3CDC #5168E7 #8797EE #BDC5F6

Accessibility & contrast

On white

4.68
#5168E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#5168E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5168E7
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5168E7#FFFFFF#000000##FFFFFF
##5168E71.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#007BEB
Deuteranopia (green-blind)
#006DE4
Tritanopia (blue-blind)
#00879D
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #5168e7;
/* rgb */ color: rgb(81, 104, 231);
/* oklch */ color: oklch(57.0% 0.193 271.2);
Tailwind
colors: {
  custom: {
    50: '#9192ef',
    500: '#5168e7',
    950: '#000000',
  },
}
SCSS
$custom: #5168e7;
$custom-light: #9192ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5168e7",
  "rgb": {
    "r": 81,
    "g": 104,
    "b": 231
  },
  "hsl": {
    "h": 230.8,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.57046,
    "c": 0.19289,
    "h": 271.2
  },
  "luminance": 0.17419
}

Semantic roles & 50–950 ramp

primary
#5168E7
secondary
#E6DDAE
accent
#B90ED8
background
#F9F9FE
surface
#F2F1FD
border
#CCCBD5
text
#0E0D17
muted
#7E7E85

Preview Lab

Preview with #5168E7

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

Preview Lab → · Contrast checker → · Palette generator →

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