#5156E6#5156E6

#5156E6 is a mid, highly saturated blue. Relative luminance 0.141; OKLCH L 53.8% C 0.213 H 275.1°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#5156E6
RGBrgb(81, 86, 230)
HSLhsl(238, 75%, 61%)
HSVhsv(238, 65%, 90%)
CMYKcmyk(64.8%, 62.6%, 0%, 9.8%)
CIE-LABlab(44.40, 41.93, -73.64)
CIE-LCHlch(44.40, 84.74, 299.66°)
OKLaboklab(53.77% 0.0188 -0.2123)
OKLCHoklch(53.77% 0.213 275.1)
XYZxyz(20.9994, 14.1163, 76.4656)
Luminance0.1412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5156E6 #E6E151
analogous
#51A0E6 #5156E6 #9751E6
triadic
#5156E6 #E65156 #56E651
tetradic
#5156E6 #E651A0 #E6E151 #51E697
square
#5156E6 #E651A0 #E6E151 #51E697
split-complementary
#5156E6 #E69751 #A0E651
monochromatic
#181CA5 #1F26DA #5156E6 #878AEE #BCBEF5

Accessibility & contrast

On white

5.49
#5156E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#5156E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5156E6
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5156E6#FFFFFF#000000##FFFFFF
##5156E61.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070EB
Deuteranopia (green-blind)
#0062E3
Tritanopia (blue-blind)
#007B96
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5156e6;
/* rgb */ color: rgb(81, 86, 230);
/* oklch */ color: oklch(53.8% 0.213 275.1);
Tailwind
colors: {
  custom: {
    50: '#9286ef',
    500: '#5156e6',
    950: '#000000',
  },
}
SCSS
$custom: #5156e6;
$custom-light: #9286ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5156e6",
  "rgb": {
    "r": 81,
    "g": 86,
    "b": 230
  },
  "hsl": {
    "h": 237.987,
    "s": 74.874,
    "l": 60.98
  },
  "oklch": {
    "l": 0.53775,
    "c": 0.21315,
    "h": 275.1
  },
  "luminance": 0.14118
}

Semantic roles & 50–950 ramp

primary
#5156E6
secondary
#E5E4AD
accent
#D00ED7
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0E0B17
muted
#7E7C85

Preview Lab

Preview with #5156E6

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

Preview Lab → · Contrast checker → · Palette generator →

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