#5A47D9#5A47D9

#5A47D9 is a mid, highly saturated blue. Relative luminance 0.117; OKLCH L 50.9% C 0.212 H 281.7°. Best body text is #FFFFFF at 6.29:1 contrast (WCAG AA passes).

Color values

HEX#5A47D9
RGBrgb(90, 71, 217)
HSLhsl(248, 66%, 56%)
HSVhsv(248, 67%, 85%)
CMYKcmyk(58.5%, 67.3%, 0%, 14.9%)
CIE-LABlab(40.72, 47.83, -72.23)
CIE-LCHlch(40.72, 86.63, 303.51°)
OKLaboklab(50.94% 0.043 -0.208)
OKLCHoklch(50.94% 0.212 281.7)
XYZxyz(18.9902, 11.6886, 66.8876)
Luminance0.1169 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A47D9 #C6D947
analogous
#477DD9 #5A47D9 #A347D9
triadic
#5A47D9 #D95A47 #47D95A
tetradic
#5A47D9 #D9477D #C6D947 #47D9A3
square
#5A47D9 #D9477D #C6D947 #47D9A3
split-complementary
#5A47D9 #D9A347 #7DD947
monochromatic
#2B1C89 #3A27BC #5A47D9 #877AE3 #B5ACEE

Accessibility & contrast

On white

6.29
#5A47D9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#5A47D9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A47D9
6.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A47D9#FFFFFF#000000##FFFFFF
##5A47D91.006.293.346.29
#FFFFFF6.291.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065DD
Deuteranopia (green-blind)
#005BD6
Tritanopia (blue-blind)
#006D8A
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #5a47d9;
/* rgb */ color: rgb(90, 71, 217);
/* oklch */ color: oklch(50.9% 0.212 281.7);
Tailwind
colors: {
  custom: {
    50: '#957ce6',
    500: '#5a47d9',
    950: '#000000',
  },
}
SCSS
$custom: #5a47d9;
$custom-light: #957ce6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a47d9",
  "rgb": {
    "r": 90,
    "g": 71,
    "b": 217
  },
  "hsl": {
    "h": 247.808,
    "s": 65.766,
    "l": 56.471
  },
  "oklch": {
    "l": 0.50936,
    "c": 0.21237,
    "h": 281.7
  },
  "luminance": 0.1169
}

Semantic roles & 50–950 ramp

primary
#5A47D9
secondary
#D4DCA0
accent
#E93FD3
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0F0916
muted
#7E7B84

Preview Lab

Preview with #5A47D9

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

Preview Lab → · Contrast checker → · Palette generator →

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