#5A47E4#5A47E4

#5A47E4 is a mid, highly saturated blue. Relative luminance 0.123; OKLCH L 51.9% C 0.226 H 280.5°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#5A47E4
RGBrgb(90, 71, 228)
HSLhsl(247, 74%, 59%)
HSVhsv(247, 69%, 89%)
CMYKcmyk(60.5%, 68.9%, 0%, 10.6%)
CIE-LABlab(41.66, 51.18, -76.96)
CIE-LCHlch(41.66, 92.43, 303.62°)
OKLaboklab(51.9% 0.0413 -0.2219)
OKLCHoklch(51.9% 0.226 280.5)
XYZxyz(20.4689, 12.2801, 74.6754)
Luminance0.1228 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A47E4 #D1E447
analogous
#4782E4 #5A47E4 #A847E4
triadic
#5A47E4 #E45A47 #47E45A
tetradic
#5A47E4 #E44782 #D1E447 #47E4A8
square
#5A47E4 #E44782 #D1E447 #47E4A8
split-complementary
#5A47E4 #E4A847 #82E447
monochromatic
#26179A #341ECF #5A47E4 #8A7CEC #BAB2F4

Accessibility & contrast

On white

6.08
#5A47E4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#5A47E4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A47E4
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A47E4#FFFFFF#000000##FFFFFF
##5A47E41.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E9
Deuteranopia (green-blind)
#005CE1
Tritanopia (blue-blind)
#007190
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a47e4;
/* rgb */ color: rgb(90, 71, 228);
/* oklch */ color: oklch(51.9% 0.226 280.5);
Tailwind
colors: {
  custom: {
    50: '#977cee',
    500: '#5a47e4',
    950: '#000000',
  },
}
SCSS
$custom: #5a47e4;
$custom-light: #977cee;
$custom-dark: #000000;
JSON
{
  "hex": "#5a47e4",
  "rgb": {
    "r": 90,
    "g": 71,
    "b": 228
  },
  "hsl": {
    "h": 247.261,
    "s": 74.408,
    "l": 58.627
  },
  "oklch": {
    "l": 0.519,
    "c": 0.22567,
    "h": 280.5
  },
  "luminance": 0.12282
}

Semantic roles & 50–950 ramp

primary
#5A47E4
secondary
#DBE2A4
accent
#F137DA
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5A47E4

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

Preview Lab → · Contrast checker → · Palette generator →

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