#5A47D6#5A47D6

#5A47D6 is a mid, highly saturated blue. Relative luminance 0.115; OKLCH L 50.7% C 0.209 H 282.0°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#5A47D6
RGBrgb(90, 71, 214)
HSLhsl(248, 64%, 56%)
HSVhsv(248, 67%, 84%)
CMYKcmyk(57.9%, 66.8%, 0%, 16.1%)
CIE-LABlab(40.47, 46.92, -70.92)
CIE-LCHlch(40.47, 85.04, 303.49°)
OKLaboklab(50.68% 0.0434 -0.2041)
OKLCHoklch(50.68% 0.209 282)
XYZxyz(18.6035, 11.5339, 64.8513)
Luminance0.1153 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A47D6 #C3D647
analogous
#477BD6 #5A47D6 #A147D6
triadic
#5A47D6 #D65A47 #47D65A
tetradic
#5A47D6 #D6477B #C3D647 #47D6A1
square
#5A47D6 #D6477B #C3D647 #47D6A1
split-complementary
#5A47D6 #D6A147 #7BD647
monochromatic
#2B1E85 #3C29B7 #5A47D6 #8779E1 #B4ABEC

Accessibility & contrast

On white

6.35
#5A47D6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#5A47D6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A47D6
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A47D6#FFFFFF#000000##FFFFFF
##5A47D61.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DA
Deuteranopia (green-blind)
#005AD3
Tritanopia (blue-blind)
#0B6C89
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5a47d6;
/* rgb */ color: rgb(90, 71, 214);
/* oklch */ color: oklch(50.7% 0.209 282.0);
Tailwind
colors: {
  custom: {
    50: '#957ce4',
    500: '#5a47d6',
    950: '#000000',
  },
}
SCSS
$custom: #5a47d6;
$custom-light: #957ce4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a47d6",
  "rgb": {
    "r": 90,
    "g": 71,
    "b": 214
  },
  "hsl": {
    "h": 247.972,
    "s": 63.556,
    "l": 55.882
  },
  "oklch": {
    "l": 0.50678,
    "c": 0.2087,
    "h": 282
  },
  "luminance": 0.11535
}

Semantic roles & 50–950 ramp

primary
#5A47D6
secondary
#D2DA9F
accent
#E741D1
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0916
muted
#7E7B84

Preview Lab

Preview with #5A47D6

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

Preview Lab → · Contrast checker → · Palette generator →

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