#5A47D8#5A47D8

#5A47D8 is a mid, highly saturated blue. Relative luminance 0.116; OKLCH L 50.8% C 0.211 H 281.8°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#5A47D8
RGBrgb(90, 71, 216)
HSLhsl(248, 65%, 56%)
HSVhsv(248, 67%, 85%)
CMYKcmyk(58.3%, 67.1%, 0%, 15.3%)
CIE-LABlab(40.63, 47.53, -71.79)
CIE-LCHlch(40.63, 86.10, 303.51°)
OKLaboklab(50.85% 0.0431 -0.2067)
OKLCHoklch(50.85% 0.211 281.8)
XYZxyz(18.8605, 11.6367, 66.2047)
Luminance0.1164 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A47D8 #C5D847
analogous
#477DD8 #5A47D8 #A347D8
triadic
#5A47D8 #D85A47 #47D85A
tetradic
#5A47D8 #D8477D #C5D847 #47D8A3
square
#5A47D8 #D8477D #C5D847 #47D8A3
split-complementary
#5A47D8 #D8A347 #7DD847
monochromatic
#2B1D88 #3B27BA #5A47D8 #8779E3 #B5ACED

Accessibility & contrast

On white

6.31
#5A47D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#5A47D8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A47D8
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A47D8#FFFFFF#000000##FFFFFF
##5A47D81.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DC
Deuteranopia (green-blind)
#005BD5
Tritanopia (blue-blind)
#036D8A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5a47d8;
/* rgb */ color: rgb(90, 71, 216);
/* oklch */ color: oklch(50.8% 0.211 281.8);
Tailwind
colors: {
  custom: {
    50: '#957ce5',
    500: '#5a47d8',
    950: '#000000',
  },
}
SCSS
$custom: #5a47d8;
$custom-light: #957ce5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a47d8",
  "rgb": {
    "r": 90,
    "g": 71,
    "b": 216
  },
  "hsl": {
    "h": 247.862,
    "s": 65.022,
    "l": 56.275
  },
  "oklch": {
    "l": 0.5085,
    "c": 0.21116,
    "h": 281.8
  },
  "luminance": 0.11638
}

Semantic roles & 50–950 ramp

primary
#5A47D8
secondary
#D3DBA0
accent
#E840D2
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5A47D8

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

Preview Lab → · Contrast checker → · Palette generator →

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