#5A47BE#5A47BE

#5A47BE is a mid, vivid blue. Relative luminance 0.104; OKLCH L 48.7% C 0.178 H 284.9°. Best body text is #FFFFFF at 6.82:1 contrast (WCAG AA passes).

Color values

HEX#5A47BE
RGBrgb(90, 71, 190)
HSLhsl(250, 48%, 51%)
HSVhsv(250, 63%, 75%)
CMYKcmyk(52.6%, 62.6%, 0%, 25.5%)
CIE-LABlab(38.55, 39.59, -60.13)
CIE-LCHlch(38.55, 71.99, 303.36°)
OKLaboklab(48.69% 0.046 -0.1725)
OKLCHoklch(48.69% 0.178 284.9)
XYZxyz(15.7612, 10.3970, 49.8815)
Luminance0.1040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A47BE #ABBE47
analogous
#476FBE #5A47BE #9547BE
triadic
#5A47BE #BE5A47 #47BE5A
tetradic
#5A47BE #BE476F #ABBE47 #47BE95
square
#5A47BE #BE476F #ABBE47 #47BE95
split-complementary
#5A47BE #BE9547 #6FBE47
monochromatic
#2F2466 #433494 #5A47BE #8374CE #ABA1DE

Accessibility & contrast

On white

6.82
#5A47BE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.08
#5A47BE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A47BE
6.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A47BE#FFFFFF#000000##FFFFFF
##5A47BE1.006.823.086.82
#FFFFFF6.821.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EC2
Deuteranopia (green-blind)
#0057BC
Tritanopia (blue-blind)
#32647C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5a47be;
/* rgb */ color: rgb(90, 71, 190);
/* oklch */ color: oklch(48.7% 0.178 284.9);
Tailwind
colors: {
  custom: {
    50: '#917bd2',
    500: '#5a47be',
    950: '#000000',
  },
}
SCSS
$custom: #5a47be;
$custom-light: #917bd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a47be",
  "rgb": {
    "r": 90,
    "g": 71,
    "b": 190
  },
  "hsl": {
    "h": 249.58,
    "s": 47.791,
    "l": 51.176
  },
  "oklch": {
    "l": 0.48689,
    "c": 0.17849,
    "h": 284.9
  },
  "luminance": 0.10398
}

Semantic roles & 50–950 ramp

primary
#5A47BE
secondary
#C2CB96
accent
#D750C2
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5A47BE

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

Preview Lab → · Contrast checker → · Palette generator →

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