#5A47E0#5A47E0

#5A47E0 is a mid, highly saturated blue. Relative luminance 0.121; OKLCH L 51.5% C 0.221 H 280.9°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#5A47E0
RGBrgb(90, 71, 224)
HSLhsl(247, 71%, 58%)
HSVhsv(247, 68%, 88%)
CMYKcmyk(59.8%, 68.3%, 0%, 12.2%)
CIE-LABlab(41.31, 49.96, -75.25)
CIE-LCHlch(41.31, 90.33, 303.58°)
OKLaboklab(51.55% 0.0419 -0.2168)
OKLCHoklch(51.55% 0.221 280.9)
XYZxyz(19.9200, 12.0605, 71.7848)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A47E0 #CDE047
analogous
#4780E0 #5A47E0 #A647E0
triadic
#5A47E0 #E05A47 #47E05A
tetradic
#5A47E0 #E04780 #CDE047 #47E0A6
square
#5A47E0 #E04780 #CDE047 #47E0A6
split-complementary
#5A47E0 #E0A647 #80E047
monochromatic
#281994 #3622C8 #5A47E0 #897BE9 #B8B0F2

Accessibility & contrast

On white

6.15
#5A47E0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#5A47E0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A47E0
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A47E0#FFFFFF#000000##FFFFFF
##5A47E01.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E5
Deuteranopia (green-blind)
#005CDD
Tritanopia (blue-blind)
#00708E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5a47e0;
/* rgb */ color: rgb(90, 71, 224);
/* oklch */ color: oklch(51.5% 0.221 280.9);
Tailwind
colors: {
  custom: {
    50: '#977ceb',
    500: '#5a47e0',
    950: '#000000',
  },
}
SCSS
$custom: #5a47e0;
$custom-light: #977ceb;
$custom-dark: #000000;
JSON
{
  "hex": "#5a47e0",
  "rgb": {
    "r": 90,
    "g": 71,
    "b": 224
  },
  "hsl": {
    "h": 247.451,
    "s": 71.163,
    "l": 57.843
  },
  "oklch": {
    "l": 0.51547,
    "c": 0.22087,
    "h": 280.9
  },
  "luminance": 0.12062
}

Semantic roles & 50–950 ramp

primary
#5A47E0
secondary
#D8E0A3
accent
#EE3AD8
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5A47E0

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

Preview Lab → · Contrast checker → · Palette generator →

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