#5A47BC#5A47BC

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

Color values

HEX#5A47BC
RGBrgb(90, 71, 188)
HSLhsl(250, 47%, 51%)
HSVhsv(250, 62%, 74%)
CMYKcmyk(52.1%, 62.2%, 0%, 26.3%)
CIE-LABlab(38.39, 38.98, -59.21)
CIE-LCHlch(38.39, 70.89, 303.36°)
OKLaboklab(48.53% 0.0461 -0.1698)
OKLCHoklch(48.53% 0.176 285.2)
XYZxyz(15.5441, 10.3102, 48.7382)
Luminance0.1031 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A47BC #A9BC47
analogous
#476EBC #5A47BC #9547BC
triadic
#5A47BC #BC5A47 #47BC5A
tetradic
#5A47BC #BC476E #A9BC47 #47BC95
square
#5A47BC #BC476E #A9BC47 #47BC95
split-complementary
#5A47BC #BC9547 #6EBC47
monochromatic
#2F2464 #443591 #5A47BC #8274CC #AAA1DD

Accessibility & contrast

On white

6.86
#5A47BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#5A47BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A47BC
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A47BC#FFFFFF#000000##FFFFFF
##5A47BC1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC0
Deuteranopia (green-blind)
#0057BA
Tritanopia (blue-blind)
#33637B
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a47bc;
/* rgb */ color: rgb(90, 71, 188);
/* oklch */ color: oklch(48.5% 0.176 285.2);
Tailwind
colors: {
  custom: {
    50: '#917bd1',
    500: '#5a47bc',
    950: '#000000',
  },
}
SCSS
$custom: #5a47bc;
$custom-light: #917bd1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a47bc",
  "rgb": {
    "r": 90,
    "g": 71,
    "b": 188
  },
  "hsl": {
    "h": 249.744,
    "s": 46.614,
    "l": 50.784
  },
  "oklch": {
    "l": 0.4853,
    "c": 0.1759,
    "h": 285.2
  },
  "luminance": 0.10311
}

Semantic roles & 50–950 ramp

primary
#5A47BC
secondary
#C1C995
accent
#D652C1
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5A47BC

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

Preview Lab → · Contrast checker → · Palette generator →

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