#5156E7#5156E7

#5156E7 is a mid, highly saturated blue. Relative luminance 0.142; OKLCH L 53.9% C 0.214 H 275.0°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#5156E7
RGBrgb(81, 86, 231)
HSLhsl(238, 76%, 61%)
HSVhsv(238, 65%, 91%)
CMYKcmyk(64.9%, 62.8%, 0%, 9.4%)
CIE-LABlab(44.48, 42.26, -74.07)
CIE-LCHlch(44.48, 85.28, 299.70°)
OKLaboklab(53.86% 0.0187 -0.2136)
OKLCHoklch(53.86% 0.214 275)
XYZxyz(21.1402, 14.1726, 77.2073)
Luminance0.1417 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5156E7 #E7E251
analogous
#51A1E7 #5156E7 #9751E7
triadic
#5156E7 #E75156 #56E751
tetradic
#5156E7 #E751A1 #E7E251 #51E797
square
#5156E7 #E751A1 #E7E251 #51E797
split-complementary
#5156E7 #E79751 #A1E751
monochromatic
#171CA7 #1E25DC #5156E7 #878AEE #BDBEF6

Accessibility & contrast

On white

5.48
#5156E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#5156E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5156E7
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5156E7#FFFFFF#000000##FFFFFF
##5156E71.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070EC
Deuteranopia (green-blind)
#0063E4
Tritanopia (blue-blind)
#007B97
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5156e7;
/* rgb */ color: rgb(81, 86, 231);
/* oklch */ color: oklch(53.9% 0.214 275.0);
Tailwind
colors: {
  custom: {
    50: '#9286f0',
    500: '#5156e7',
    950: '#000000',
  },
}
SCSS
$custom: #5156e7;
$custom-light: #9286f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5156e7",
  "rgb": {
    "r": 81,
    "g": 86,
    "b": 231
  },
  "hsl": {
    "h": 238,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.53859,
    "c": 0.21441,
    "h": 275
  },
  "luminance": 0.14174
}

Semantic roles & 50–950 ramp

primary
#5156E7
secondary
#E6E4AE
accent
#D10ED8
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B17
muted
#7E7C85

Preview Lab

Preview with #5156E7

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

Preview Lab → · Contrast checker → · Palette generator →

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