#5E51E7#5E51E7

#5E51E7 is a mid, highly saturated blue. Relative luminance 0.140; OKLCH L 53.9% C 0.217 H 280.1°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#5E51E7
RGBrgb(94, 81, 231)
HSLhsl(245, 76%, 61%)
HSVhsv(245, 65%, 91%)
CMYKcmyk(59.3%, 64.9%, 0%, 9.4%)
CIE-LABlab(44.28, 47.07, -74.36)
CIE-LCHlch(44.28, 88.00, 302.33°)
OKLaboklab(53.95% 0.0382 -0.2141)
OKLCHoklch(53.95% 0.217 280.1)
XYZxyz(21.9778, 14.0325, 77.1362)
Luminance0.1403 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5E51E7 #DAE751
analogous
#518FE7 #5E51E7 #A951E7
triadic
#5E51E7 #E75E51 #51E75E
tetradic
#5E51E7 #E7518F #DAE751 #51E7A9
square
#5E51E7 #E7518F #DAE751 #51E7A9
split-complementary
#5E51E7 #E7A951 #8FE751
monochromatic
#2317A7 #2F1EDC #5E51E7 #9087EE #C2BDF6

Accessibility & contrast

On white

5.52
#5E51E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#5E51E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5E51E7
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5E51E7#FFFFFF#000000##FFFFFF
##5E51E71.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EEC
Deuteranopia (green-blind)
#0063E4
Tritanopia (blue-blind)
#007795
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5e51e7;
/* rgb */ color: rgb(94, 81, 231);
/* oklch */ color: oklch(53.9% 0.217 280.1);
Tailwind
colors: {
  custom: {
    50: '#9983f0',
    500: '#5e51e7',
    950: '#000000',
  },
}
SCSS
$custom: #5e51e7;
$custom-light: #9983f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5e51e7",
  "rgb": {
    "r": 94,
    "g": 81,
    "b": 231
  },
  "hsl": {
    "h": 245.2,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.53945,
    "c": 0.21749,
    "h": 280.1
  },
  "luminance": 0.14034
}

Semantic roles & 50–950 ramp

primary
#5E51E7
secondary
#E1E6AE
accent
#D80EC6
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5E51E7

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

Preview Lab → · Contrast checker → · Palette generator →

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