#5A47BB#5A47BB

#5A47BB is a mid, vivid blue. Relative luminance 0.103; OKLCH L 48.5% C 0.175 H 285.3°. Best body text is #FFFFFF at 6.88:1 contrast (WCAG AA passes).

Color values

HEX#5A47BB
RGBrgb(90, 71, 187)
HSLhsl(250, 46%, 51%)
HSVhsv(250, 62%, 73%)
CMYKcmyk(51.9%, 62%, 0%, 26.7%)
CIE-LABlab(38.32, 38.67, -58.75)
CIE-LCHlch(38.32, 70.33, 303.36°)
OKLaboklab(48.45% 0.0462 -0.1684)
OKLCHoklch(48.45% 0.175 285.3)
XYZxyz(15.4366, 10.2672, 48.1724)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A47BB #A8BB47
analogous
#476EBB #5A47BB #9447BB
triadic
#5A47BB #BB5A47 #47BB5A
tetradic
#5A47BB #BB476E #A8BB47 #47BB94
square
#5A47BB #BB476E #A8BB47 #47BB94
split-complementary
#5A47BB #BB9447 #6EBB47
monochromatic
#2F2563 #443590 #5A47BB #8274CC #AAA0DC

Accessibility & contrast

On white

6.88
#5A47BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5A47BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A47BB
6.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A47BB#FFFFFF#000000##FFFFFF
##5A47BB1.006.883.056.88
#FFFFFF6.881.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#0057B9
Tritanopia (blue-blind)
#34637A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a47bb;
/* rgb */ color: rgb(90, 71, 187);
/* oklch */ color: oklch(48.5% 0.175 285.3);
Tailwind
colors: {
  custom: {
    50: '#917bd0',
    500: '#5a47bb',
    950: '#000000',
  },
}
SCSS
$custom: #5a47bb;
$custom-light: #917bd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a47bb",
  "rgb": {
    "r": 90,
    "g": 71,
    "b": 187
  },
  "hsl": {
    "h": 249.828,
    "s": 46.032,
    "l": 50.588
  },
  "oklch": {
    "l": 0.48451,
    "c": 0.17461,
    "h": 285.3
  },
  "luminance": 0.10268
}

Semantic roles & 50–950 ramp

primary
#5A47BB
secondary
#C0C995
accent
#D652C0
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0D0914
muted
#7E7B82

Preview Lab

Preview with #5A47BB

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

Preview Lab → · Contrast checker → · Palette generator →

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