#5A51BB#5A51BB

#5A51BB is a mid, vivid blue. Relative luminance 0.116; OKLCH L 50.2% C 0.161 H 282.7°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#5A51BB
RGBrgb(90, 81, 187)
HSLhsl(245, 44%, 53%)
HSVhsv(245, 57%, 73%)
CMYKcmyk(51.9%, 56.7%, 0%, 26.7%)
CIE-LABlab(40.65, 32.63, -54.97)
CIE-LCHlch(40.65, 63.93, 300.69°)
OKLaboklab(50.16% 0.0356 -0.1572)
OKLCHoklch(50.16% 0.161 282.7)
XYZxyz(16.1258, 11.6455, 48.4022)
Luminance0.1165 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A51BB #B2BB51
analogous
#517DBB #5A51BB #8F51BB
triadic
#5A51BB #BB5A51 #51BB5A
tetradic
#5A51BB #BB517D #B2BB51 #51BB8F
square
#5A51BB #BB517D #B2BB51 #51BB8F
split-complementary
#5A51BB #BB8F51 #7DBB51
monochromatic
#2E2969 #423A95 #5A51BB #847DCC #ADA9DD

Accessibility & contrast

On white

6.31
#5A51BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#5A51BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A51BB
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A51BB#FFFFFF#000000##FFFFFF
##5A51BB1.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0163BF
Deuteranopia (green-blind)
#005CB9
Tritanopia (blue-blind)
#33697E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5a51bb;
/* rgb */ color: rgb(90, 81, 187);
/* oklch */ color: oklch(50.2% 0.161 282.7);
Tailwind
colors: {
  custom: {
    50: '#9082d0',
    500: '#5a51bb',
    950: '#000000',
  },
}
SCSS
$custom: #5a51bb;
$custom-light: #9082d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a51bb",
  "rgb": {
    "r": 90,
    "g": 81,
    "b": 187
  },
  "hsl": {
    "h": 245.094,
    "s": 43.802,
    "l": 52.549
  },
  "oklch": {
    "l": 0.50164,
    "c": 0.16121,
    "h": 282.7
  },
  "luminance": 0.11646
}

Semantic roles & 50–950 ramp

primary
#5A51BB
secondary
#C7CB9D
accent
#D454C9
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #5A51BB

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

Preview Lab → · Contrast checker → · Palette generator →

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