#5A51E4#5A51E4

#5A51E4 is a mid, highly saturated blue. Relative luminance 0.137; OKLCH L 53.4% C 0.215 H 279.0°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#5A51E4
RGBrgb(90, 81, 228)
HSLhsl(244, 73%, 61%)
HSVhsv(244, 64%, 89%)
CMYKcmyk(60.5%, 64.5%, 0%, 10.6%)
CIE-LABlab(43.74, 45.53, -73.56)
CIE-LCHlch(43.74, 86.51, 301.76°)
OKLaboklab(53.4% 0.0335 -0.2119)
OKLCHoklch(53.4% 0.215 279)
XYZxyz(21.1580, 13.6584, 74.9051)
Luminance0.1366 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A51E4 #DBE451
analogous
#5192E4 #5A51E4 #A351E4
triadic
#5A51E4 #E45A51 #51E45A
tetradic
#5A51E4 #E45192 #DBE451 #51E4A3
square
#5A51E4 #E45192 #DBE451 #51E4A3
split-complementary
#5A51E4 #E4A351 #92E451
monochromatic
#2119A2 #2C21D7 #5A51E4 #8C86EC #BEBBF4

Accessibility & contrast

On white

5.63
#5A51E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#5A51E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A51E4
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A51E4#FFFFFF#000000##FFFFFF
##5A51E41.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DE9
Deuteranopia (green-blind)
#0061E1
Tritanopia (blue-blind)
#007793
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5a51e4;
/* rgb */ color: rgb(90, 81, 228);
/* oklch */ color: oklch(53.4% 0.215 279.0);
Tailwind
colors: {
  custom: {
    50: '#9783ee',
    500: '#5a51e4',
    950: '#000000',
  },
}
SCSS
$custom: #5a51e4;
$custom-light: #9783ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5a51e4",
  "rgb": {
    "r": 90,
    "g": 81,
    "b": 228
  },
  "hsl": {
    "h": 243.673,
    "s": 73.134,
    "l": 60.588
  },
  "oklch": {
    "l": 0.53402,
    "c": 0.21451,
    "h": 279
  },
  "luminance": 0.1366
}

Semantic roles & 50–950 ramp

primary
#5A51E4
secondary
#E1E4AC
accent
#D510C9
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5A51E4

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

Preview Lab → · Contrast checker → · Palette generator →

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