#5A47BD#5A47BD

#5A47BD is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.6% C 0.177 H 285.1°. Best body text is #FFFFFF at 6.84:1 contrast (WCAG AA passes).

Color values

HEX#5A47BD
RGBrgb(90, 71, 189)
HSLhsl(250, 47%, 51%)
HSVhsv(250, 62%, 74%)
CMYKcmyk(52.4%, 62.4%, 0%, 25.9%)
CIE-LABlab(38.47, 39.28, -59.67)
CIE-LCHlch(38.47, 71.44, 303.36°)
OKLaboklab(48.61% 0.0461 -0.1711)
OKLCHoklch(48.61% 0.177 285.1)
XYZxyz(15.6522, 10.3534, 49.3079)
Luminance0.1035 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A47BD #AABD47
analogous
#476FBD #5A47BD #9547BD
triadic
#5A47BD #BD5A47 #47BD5A
tetradic
#5A47BD #BD476F #AABD47 #47BD95
square
#5A47BD #BD476F #AABD47 #47BD95
split-complementary
#5A47BD #BD9547 #6FBD47
monochromatic
#2F2465 #443492 #5A47BD #8274CD #ABA1DD

Accessibility & contrast

On white

6.84
#5A47BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#5A47BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A47BD
6.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A47BD#FFFFFF#000000##FFFFFF
##5A47BD1.006.843.076.84
#FFFFFF6.841.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC1
Deuteranopia (green-blind)
#0057BB
Tritanopia (blue-blind)
#33637B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5a47bd;
/* rgb */ color: rgb(90, 71, 189);
/* oklch */ color: oklch(48.6% 0.177 285.1);
Tailwind
colors: {
  custom: {
    50: '#917bd2',
    500: '#5a47bd',
    950: '#000000',
  },
}
SCSS
$custom: #5a47bd;
$custom-light: #917bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a47bd",
  "rgb": {
    "r": 90,
    "g": 71,
    "b": 189
  },
  "hsl": {
    "h": 249.661,
    "s": 47.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48609,
    "c": 0.1772,
    "h": 285.1
  },
  "luminance": 0.10354
}

Semantic roles & 50–950 ramp

primary
#5A47BD
secondary
#C2CA96
accent
#D751C1
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5A47BD

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

Preview Lab → · Contrast checker → · Palette generator →

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