#5E51EC#5E51EC

#5E51EC is a mid, highly saturated blue. Relative luminance 0.143; OKLCH L 54.4% C 0.224 H 279.7°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#5E51EC
RGBrgb(94, 81, 236)
HSLhsl(245, 80%, 62%)
HSVhsv(245, 66%, 93%)
CMYKcmyk(60.2%, 65.7%, 0%, 7.5%)
CIE-LABlab(44.69, 48.61, -76.52)
CIE-LCHlch(44.69, 90.65, 302.43°)
OKLaboklab(54.37% 0.0376 -0.2204)
OKLCHoklch(54.37% 0.224 279.7)
XYZxyz(22.6940, 14.3190, 80.9086)
Luminance0.1432 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E51EC #DFEC51
analogous
#5192EC #5E51EC #AB51EC
triadic
#5E51EC #EC5E51 #51EC5E
tetradic
#5E51EC #EC5192 #DFEC51 #51ECAB
square
#5E51EC #EC5192 #DFEC51 #51ECAB
split-complementary
#5E51EC #ECAB51 #92EC51
monochromatic
#2013AF #2B1AE6 #5E51EC #9188F2 #C4BFF8

Accessibility & contrast

On white

5.43
#5E51EC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#5E51EC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E51EC
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E51EC#FFFFFF#000000##FFFFFF
##5E51EC1.005.433.865.43
#FFFFFF5.431.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070F1
Deuteranopia (green-blind)
#0064E9
Tritanopia (blue-blind)
#007998
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5e51ec;
/* rgb */ color: rgb(94, 81, 236);
/* oklch */ color: oklch(54.4% 0.224 279.7);
Tailwind
colors: {
  custom: {
    50: '#9a83f3',
    500: '#5e51ec',
    950: '#000000',
  },
}
SCSS
$custom: #5e51ec;
$custom-light: #9a83f3;
$custom-dark: #000000;
JSON
{
  "hex": "#5e51ec",
  "rgb": {
    "r": 94,
    "g": 81,
    "b": 236
  },
  "hsl": {
    "h": 245.032,
    "s": 80.311,
    "l": 62.157
  },
  "oklch": {
    "l": 0.54366,
    "c": 0.22363,
    "h": 279.7
  },
  "luminance": 0.14321
}

Semantic roles & 50–950 ramp

primary
#5E51EC
secondary
#E4E9B0
accent
#DD09CB
background
#FAF8FF
surface
#F4EFFE
border
#CECAD6
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5E51EC

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

Preview Lab → · Contrast checker → · Palette generator →

#5E51EC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva