#5A51EA#5A51EA

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

Color values

HEX#5A51EA
RGBrgb(90, 81, 234)
HSLhsl(244, 78%, 62%)
HSVhsv(244, 65%, 92%)
CMYKcmyk(61.5%, 65.4%, 0%, 8.2%)
CIE-LABlab(44.23, 47.41, -76.15)
CIE-LCHlch(44.23, 89.70, 301.91°)
OKLaboklab(53.91% 0.0329 -0.2195)
OKLCHoklch(53.91% 0.222 278.5)
XYZxyz(22.0054, 13.9973, 79.3681)
Luminance0.1400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A51EA #E1EA51
analogous
#5195EA #5A51EA #A651EA
triadic
#5A51EA #EA5A51 #51EA5A
tetradic
#5A51EA #EA5195 #E1EA51 #51EAA6
square
#5A51EA #EA5195 #E1EA51 #51EAA6
split-complementary
#5A51EA #EAA651 #95EA51
monochromatic
#1E15AC #271BE2 #5A51EA #8E88F1 #C2BEF7

Accessibility & contrast

On white

5.53
#5A51EA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#5A51EA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A51EA
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A51EA#FFFFFF#000000##FFFFFF
##5A51EA1.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FEF
Deuteranopia (green-blind)
#0062E7
Tritanopia (blue-blind)
#007997
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5a51ea;
/* rgb */ color: rgb(90, 81, 234);
/* oklch */ color: oklch(53.9% 0.222 278.5);
Tailwind
colors: {
  custom: {
    50: '#9883f2',
    500: '#5a51ea',
    950: '#000000',
  },
}
SCSS
$custom: #5a51ea;
$custom-light: #9883f2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a51ea",
  "rgb": {
    "r": 90,
    "g": 81,
    "b": 234
  },
  "hsl": {
    "h": 243.529,
    "s": 78.462,
    "l": 61.765
  },
  "oklch": {
    "l": 0.53909,
    "c": 0.22192,
    "h": 278.5
  },
  "luminance": 0.13999
}

Semantic roles & 50–950 ramp

primary
#5A51EA
secondary
#E4E8AF
accent
#DB0BCE
background
#FAF8FE
surface
#F4EFFD
border
#CECAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A51EA

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

Preview Lab → · Contrast checker → · Palette generator →

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