#5A47DC#5A47DC

#5A47DC is a mid, highly saturated blue. Relative luminance 0.118; OKLCH L 51.2% C 0.216 H 281.4°. Best body text is #FFFFFF at 6.23:1 contrast (WCAG AA passes).

Color values

HEX#5A47DC
RGBrgb(90, 71, 220)
HSLhsl(248, 68%, 57%)
HSVhsv(248, 68%, 86%)
CMYKcmyk(59.1%, 67.7%, 0%, 13.7%)
CIE-LABlab(40.97, 48.75, -73.53)
CIE-LCHlch(40.97, 88.22, 303.54°)
OKLaboklab(51.2% 0.0425 -0.2118)
OKLCHoklch(51.2% 0.216 281.4)
XYZxyz(19.3839, 11.8461, 68.9613)
Luminance0.1185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A47DC #C9DC47
analogous
#477FDC #5A47DC #A547DC
triadic
#5A47DC #DC5A47 #47DC5A
tetradic
#5A47DC #DC477F #C9DC47 #47DCA5
square
#5A47DC #DC477F #C9DC47 #47DCA5
split-complementary
#5A47DC #DCA547 #7FDC47
monochromatic
#2A1B8E #3925C1 #5A47DC #887AE6 #B6AEF0

Accessibility & contrast

On white

6.23
#5A47DC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#5A47DC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A47DC
6.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A47DC#FFFFFF#000000##FFFFFF
##5A47DC1.006.233.376.23
#FFFFFF6.231.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066E1
Deuteranopia (green-blind)
#005BD9
Tritanopia (blue-blind)
#006E8C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5a47dc;
/* rgb */ color: rgb(90, 71, 220);
/* oklch */ color: oklch(51.2% 0.216 281.4);
Tailwind
colors: {
  custom: {
    50: '#967ce8',
    500: '#5a47dc',
    950: '#000000',
  },
}
SCSS
$custom: #5a47dc;
$custom-light: #967ce8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a47dc",
  "rgb": {
    "r": 90,
    "g": 71,
    "b": 220
  },
  "hsl": {
    "h": 247.651,
    "s": 68.037,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51196,
    "c": 0.21603,
    "h": 281.4
  },
  "luminance": 0.11847
}

Semantic roles & 50–950 ramp

primary
#5A47DC
secondary
#D6DEA1
accent
#EB3DD5
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5A47DC

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

Preview Lab → · Contrast checker → · Palette generator →

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