#5142E7#5142E7

#5142E7 is a mid, highly saturated blue. Relative luminance 0.114; OKLCH L 50.8% C 0.236 H 277.9°. Best body text is #FFFFFF at 6.40:1 contrast (WCAG AA passes).

Color values

HEX#5142E7
RGBrgb(81, 66, 231)
HSLhsl(245, 77%, 58%)
HSVhsv(245, 71%, 91%)
CMYKcmyk(64.9%, 71.4%, 0%, 9.4%)
CIE-LABlab(40.27, 53.67, -80.98)
CIE-LCHlch(40.27, 97.15, 303.53°)
OKLaboklab(50.82% 0.0326 -0.2338)
OKLCHoklch(50.82% 0.236 277.9)
XYZxyz(19.7607, 11.4136, 76.7475)
Luminance0.1142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5142E7 #D8E742
analogous
#4285E7 #5142E7 #A442E7
triadic
#5142E7 #E75142 #42E751
tetradic
#5142E7 #E74285 #D8E742 #42E7A4
square
#5142E7 #E74285 #D8E742 #42E7A4
split-complementary
#5142E7 #E7A442 #85E742
monochromatic
#20149B #2B1BD1 #5142E7 #8378EE #B5AFF5

Accessibility & contrast

On white

6.40
#5142E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.28
#5142E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5142E7
6.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5142E7#FFFFFF#000000##FFFFFF
##5142E71.006.403.286.40
#FFFFFF6.401.0021.001.00
#0000003.2821.001.0021.00
##FFFFFF6.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066EC
Deuteranopia (green-blind)
#0058E4
Tritanopia (blue-blind)
#007090
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5142e7;
/* rgb */ color: rgb(81, 66, 231);
/* oklch */ color: oklch(50.8% 0.236 277.9);
Tailwind
colors: {
  custom: {
    50: '#9479f0',
    500: '#5142e7',
    950: '#000000',
  },
}
SCSS
$custom: #5142e7;
$custom-light: #9479f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5142e7",
  "rgb": {
    "r": 81,
    "g": 66,
    "b": 231
  },
  "hsl": {
    "h": 245.455,
    "s": 77.465,
    "l": 58.235
  },
  "oklch": {
    "l": 0.50818,
    "c": 0.23608,
    "h": 277.9
  },
  "luminance": 0.11415
}

Semantic roles & 50–950 ramp

primary
#5142E7
secondary
#DDE3A2
accent
#F434E3
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0917
muted
#7F7B85

Preview Lab

Preview with #5142E7

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

Preview Lab → · Contrast checker → · Palette generator →

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