#5A51E6#5A51E6

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

Color values

HEX#5A51E6
RGBrgb(90, 81, 230)
HSLhsl(244, 75%, 61%)
HSVhsv(244, 65%, 90%)
CMYKcmyk(60.9%, 64.8%, 0%, 9.8%)
CIE-LABlab(43.90, 46.16, -74.42)
CIE-LCHlch(43.90, 87.58, 301.81°)
OKLaboklab(53.57% 0.0333 -0.2144)
OKLCHoklch(53.57% 0.217 278.8)
XYZxyz(21.4372, 13.7701, 76.3758)
Luminance0.1377 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A51E6 #DDE651
analogous
#5192E6 #5A51E6 #A451E6
triadic
#5A51E6 #E65A51 #51E65A
tetradic
#5A51E6 #E65192 #DDE651 #51E6A4
square
#5A51E6 #E65192 #DDE651 #51E6A4
split-complementary
#5A51E6 #E6A451 #92E651
monochromatic
#2018A5 #2B1FDA #5A51E6 #8D87EE #BFBCF5

Accessibility & contrast

On white

5.59
#5A51E6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.75
#5A51E6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A51E6
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A51E6#FFFFFF#000000##FFFFFF
##5A51E61.005.593.755.59
#FFFFFF5.591.0021.001.00
#0000003.7521.001.0021.00
##FFFFFF5.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5a51e6;
/* rgb */ color: rgb(90, 81, 230);
/* oklch */ color: oklch(53.6% 0.217 278.8);
Tailwind
colors: {
  custom: {
    50: '#9783ef',
    500: '#5a51e6',
    950: '#000000',
  },
}
SCSS
$custom: #5a51e6;
$custom-light: #9783ef;
$custom-dark: #000000;
JSON
{
  "hex": "#5a51e6",
  "rgb": {
    "r": 90,
    "g": 81,
    "b": 230
  },
  "hsl": {
    "h": 243.624,
    "s": 74.874,
    "l": 60.98
  },
  "oklch": {
    "l": 0.5357,
    "c": 0.21698,
    "h": 278.8
  },
  "luminance": 0.13772
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A51E6

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

Preview Lab → · Contrast checker → · Palette generator →

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