#5A51E5#5A51E5

#5A51E5 is a mid, highly saturated blue. Relative luminance 0.137; OKLCH L 53.5% C 0.216 H 278.9°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#5A51E5
RGBrgb(90, 81, 229)
HSLhsl(244, 74%, 61%)
HSVhsv(244, 65%, 90%)
CMYKcmyk(60.7%, 64.6%, 0%, 10.2%)
CIE-LABlab(43.82, 45.85, -73.99)
CIE-LCHlch(43.82, 87.04, 301.78°)
OKLaboklab(53.49% 0.0334 -0.2131)
OKLCHoklch(53.49% 0.216 278.9)
XYZxyz(21.2972, 13.7141, 75.6383)
Luminance0.1372 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A51E5 #DCE551
analogous
#5192E5 #5A51E5 #A451E5
triadic
#5A51E5 #E55A51 #51E55A
tetradic
#5A51E5 #E55192 #DCE551 #51E5A4
square
#5A51E5 #E55192 #DCE551 #51E5A4
split-complementary
#5A51E5 #E5A451 #92E551
monochromatic
#2118A3 #2C20D8 #5A51E5 #8C86ED #BFBBF5

Accessibility & contrast

On white

5.61
#5A51E5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#5A51E5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A51E5
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A51E5#FFFFFF#000000##FFFFFF
##5A51E51.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a51e5;
/* rgb */ color: rgb(90, 81, 229);
/* oklch */ color: oklch(53.5% 0.216 278.9);
Tailwind
colors: {
  custom: {
    50: '#9783ee',
    500: '#5a51e5',
    950: '#000000',
  },
}
SCSS
$custom: #5a51e5;
$custom-light: #9783ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5a51e5",
  "rgb": {
    "r": 90,
    "g": 81,
    "b": 229
  },
  "hsl": {
    "h": 243.649,
    "s": 74,
    "l": 60.784
  },
  "oklch": {
    "l": 0.53486,
    "c": 0.21574,
    "h": 278.9
  },
  "luminance": 0.13716
}

Semantic roles & 50–950 ramp

primary
#5A51E5
secondary
#E2E5AD
accent
#D60FCA
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5A51E5

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

Preview Lab → · Contrast checker → · Palette generator →

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