#5A51DC#5A51DC

#5A51DC is a mid, highly saturated blue. Relative luminance 0.132; OKLCH L 52.7% C 0.204 H 279.6°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#5A51DC
RGBrgb(90, 81, 220)
HSLhsl(244, 67%, 59%)
HSVhsv(244, 63%, 86%)
CMYKcmyk(59.1%, 63.2%, 0%, 13.7%)
CIE-LABlab(43.10, 43.02, -70.05)
CIE-LCHlch(43.10, 82.21, 301.55°)
OKLaboklab(52.74% 0.0342 -0.2016)
OKLCHoklch(52.74% 0.204 279.6)
XYZxyz(20.0731, 13.2244, 69.1911)
Luminance0.1323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A51DC #D3DC51
analogous
#518EDC #5A51DC #A051DC
triadic
#5A51DC #DC5A51 #51DC5A
tetradic
#5A51DC #DC518E #D3DC51 #51DCA0
square
#5A51DC #DC518E #D3DC51 #51DCA0
split-complementary
#5A51DC #DCA051 #8EDC51
monochromatic
#261E95 #3228C8 #5A51DC #8A84E6 #BBB7F0

Accessibility & contrast

On white

5.76
#5A51DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#5A51DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A51DC
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A51DC#FFFFFF#000000##FFFFFF
##5A51DC1.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE0
Deuteranopia (green-blind)
#0060D9
Tritanopia (blue-blind)
#00748F
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5a51dc;
/* rgb */ color: rgb(90, 81, 220);
/* oklch */ color: oklch(52.7% 0.204 279.6);
Tailwind
colors: {
  custom: {
    50: '#9582e8',
    500: '#5a51dc',
    950: '#000000',
  },
}
SCSS
$custom: #5a51dc;
$custom-light: #9582e8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a51dc",
  "rgb": {
    "r": 90,
    "g": 81,
    "b": 220
  },
  "hsl": {
    "h": 243.885,
    "s": 66.507,
    "l": 59.02
  },
  "oklch": {
    "l": 0.52738,
    "c": 0.20446,
    "h": 279.6
  },
  "luminance": 0.13226
}

Semantic roles & 50–950 ramp

primary
#5A51DC
secondary
#DCE0A9
accent
#E93EDE
background
#F9F8FE
surface
#F2EFFD
border
#CCCAD5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5A51DC

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

Preview Lab → · Contrast checker → · Palette generator →

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