#5E51E5#5E51E5

#5E51E5 is a mid, highly saturated blue. Relative luminance 0.139; OKLCH L 53.8% C 0.215 H 280.3°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#5E51E5
RGBrgb(94, 81, 229)
HSLhsl(245, 74%, 61%)
HSVhsv(245, 65%, 90%)
CMYKcmyk(59%, 64.6%, 0%, 10.2%)
CIE-LABlab(44.12, 46.45, -73.49)
CIE-LCHlch(44.12, 86.94, 302.29°)
OKLaboklab(53.78% 0.0384 -0.2116)
OKLCHoklch(53.78% 0.215 280.3)
XYZxyz(21.6969, 13.9201, 75.6571)
Luminance0.1392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E51E5 #D8E551
analogous
#518EE5 #5E51E5 #A851E5
triadic
#5E51E5 #E55E51 #51E55E
tetradic
#5E51E5 #E5518E #D8E551 #51E5A8
square
#5E51E5 #E5518E #D8E551 #51E5A8
split-complementary
#5E51E5 #E5A851 #8EE551
monochromatic
#2518A3 #3120D8 #5E51E5 #8F86ED #C1BBF5

Accessibility & contrast

On white

5.55
#5E51E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#5E51E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E51E5
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E51E5#FFFFFF#000000##FFFFFF
##5E51E51.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EEA
Deuteranopia (green-blind)
#0063E2
Tritanopia (blue-blind)
#007794
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5e51e5;
/* rgb */ color: rgb(94, 81, 229);
/* oklch */ color: oklch(53.8% 0.215 280.3);
Tailwind
colors: {
  custom: {
    50: '#9983ee',
    500: '#5e51e5',
    950: '#000000',
  },
}
SCSS
$custom: #5e51e5;
$custom-light: #9983ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5e51e5",
  "rgb": {
    "r": 94,
    "g": 81,
    "b": 229
  },
  "hsl": {
    "h": 245.27,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.53778,
    "c": 0.21501,
    "h": 280.3
  },
  "luminance": 0.13922
}

Semantic roles & 50–950 ramp

primary
#5E51E5
secondary
#E0E5AD
accent
#D60FC5
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5E51E5

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

Preview Lab → · Contrast checker → · Palette generator →

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