#5A47E1#5A47E1

#5A47E1 is a mid, highly saturated blue. Relative luminance 0.121; OKLCH L 51.6% C 0.222 H 280.8°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#5A47E1
RGBrgb(90, 71, 225)
HSLhsl(247, 72%, 58%)
HSVhsv(247, 68%, 88%)
CMYKcmyk(60%, 68.4%, 0%, 11.8%)
CIE-LABlab(41.40, 50.27, -75.68)
CIE-LCHlch(41.40, 90.86, 303.59°)
OKLaboklab(51.64% 0.0418 -0.2181)
OKLCHoklch(51.64% 0.222 280.8)
XYZxyz(20.0560, 12.1149, 72.5011)
Luminance0.1212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A47E1 #CEE147
analogous
#4781E1 #5A47E1 #A747E1
triadic
#5A47E1 #E15A47 #47E15A
tetradic
#5A47E1 #E14781 #CEE147 #47E1A7
square
#5A47E1 #E14781 #CEE147 #47E1A7
split-complementary
#5A47E1 #E1A747 #81E147
monochromatic
#281895 #3621CA #5A47E1 #897CEA #B8B0F2

Accessibility & contrast

On white

6.13
#5A47E1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#5A47E1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A47E1
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A47E1#FFFFFF#000000##FFFFFF
##5A47E11.006.133.426.13
#FFFFFF6.131.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E6
Deuteranopia (green-blind)
#005CDE
Tritanopia (blue-blind)
#00708F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a47e1;
/* rgb */ color: rgb(90, 71, 225);
/* oklch */ color: oklch(51.6% 0.222 280.8);
Tailwind
colors: {
  custom: {
    50: '#977cec',
    500: '#5a47e1',
    950: '#000000',
  },
}
SCSS
$custom: #5a47e1;
$custom-light: #977cec;
$custom-dark: #000000;
JSON
{
  "hex": "#5a47e1",
  "rgb": {
    "r": 90,
    "g": 71,
    "b": 225
  },
  "hsl": {
    "h": 247.403,
    "s": 71.963,
    "l": 58.039
  },
  "oklch": {
    "l": 0.51635,
    "c": 0.22208,
    "h": 280.8
  },
  "luminance": 0.12116
}

Semantic roles & 50–950 ramp

primary
#5A47E1
secondary
#D9E1A3
accent
#EF39D8
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5A47E1

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

Preview Lab → · Contrast checker → · Palette generator →

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