#5A51E7#5A51E7

#5A51E7 is a mid, highly saturated blue. Relative luminance 0.138; OKLCH L 53.7% C 0.218 H 278.8°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#5A51E7
RGBrgb(90, 81, 231)
HSLhsl(244, 76%, 61%)
HSVhsv(244, 65%, 91%)
CMYKcmyk(61%, 64.9%, 0%, 9.4%)
CIE-LABlab(43.98, 46.47, -74.86)
CIE-LCHlch(43.98, 88.11, 301.83°)
OKLaboklab(53.65% 0.0332 -0.2157)
OKLCHoklch(53.65% 0.218 278.8)
XYZxyz(21.5781, 13.8264, 77.1175)
Luminance0.1383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A51E7 #DEE751
analogous
#5193E7 #5A51E7 #A551E7
triadic
#5A51E7 #E75A51 #51E75A
tetradic
#5A51E7 #E75193 #DEE751 #51E7A5
square
#5A51E7 #E75193 #DEE751 #51E7A5
split-complementary
#5A51E7 #E7A551 #93E751
monochromatic
#2017A7 #2A1EDC #5A51E7 #8D87EE #C0BDF6

Accessibility & contrast

On white

5.58
#5A51E7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#5A51E7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A51E7
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A51E7#FFFFFF#000000##FFFFFF
##5A51E71.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EEC
Deuteranopia (green-blind)
#0062E4
Tritanopia (blue-blind)
#007895
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5a51e7;
/* rgb */ color: rgb(90, 81, 231);
/* oklch */ color: oklch(53.7% 0.218 278.8);
Tailwind
colors: {
  custom: {
    50: '#9783f0',
    500: '#5a51e7',
    950: '#000000',
  },
}
SCSS
$custom: #5a51e7;
$custom-light: #9783f0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a51e7",
  "rgb": {
    "r": 90,
    "g": 81,
    "b": 231
  },
  "hsl": {
    "h": 243.6,
    "s": 75.758,
    "l": 61.176
  },
  "oklch": {
    "l": 0.53654,
    "c": 0.21822,
    "h": 278.8
  },
  "luminance": 0.13828
}

Semantic roles & 50–950 ramp

primary
#5A51E7
secondary
#E3E6AE
accent
#D80ECC
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0B17
muted
#7F7C85

Preview Lab

Preview with #5A51E7

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

Preview Lab → · Contrast checker → · Palette generator →

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