#5A47CE#5A47CE

#5A47CE is a mid, vivid blue. Relative luminance 0.111; OKLCH L 50.0% C 0.199 H 282.9°. Best body text is #FFFFFF at 6.51:1 contrast (WCAG AA passes).

Color values

HEX#5A47CE
RGBrgb(90, 71, 206)
HSLhsl(248, 58%, 54%)
HSVhsv(248, 66%, 81%)
CMYKcmyk(56.3%, 65.5%, 0%, 19.2%)
CIE-LABlab(39.81, 44.48, -67.39)
CIE-LCHlch(39.81, 80.74, 303.43°)
OKLaboklab(50% 0.0444 -0.1938)
OKLCHoklch(50% 0.199 282.9)
XYZxyz(17.6068, 11.1353, 59.6021)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A47CE #BBCE47
analogous
#4778CE #5A47CE #9D47CE
triadic
#5A47CE #CE5A47 #47CE5A
tetradic
#5A47CE #CE4778 #BBCE47 #47CE9D
square
#5A47CE #CE4778 #BBCE47 #47CE9D
split-complementary
#5A47CE #CE9D47 #78CE47
monochromatic
#2D217A #3F2DAA #5A47CE #8577DB #B1A8E8

Accessibility & contrast

On white

6.51
#5A47CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#5A47CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A47CE
6.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A47CE#FFFFFF#000000##FFFFFF
##5A47CE1.006.513.236.51
#FFFFFF6.511.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D2
Deuteranopia (green-blind)
#0059CB
Tritanopia (blue-blind)
#1E6984
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5a47ce;
/* rgb */ color: rgb(90, 71, 206);
/* oklch */ color: oklch(50.0% 0.199 282.9);
Tailwind
colors: {
  custom: {
    50: '#947bde',
    500: '#5a47ce',
    950: '#000000',
  },
}
SCSS
$custom: #5a47ce;
$custom-light: #947bde;
$custom-dark: #000000;
JSON
{
  "hex": "#5a47ce",
  "rgb": {
    "r": 90,
    "g": 71,
    "b": 206
  },
  "hsl": {
    "h": 248.444,
    "s": 57.94,
    "l": 54.314
  },
  "oklch": {
    "l": 0.49999,
    "c": 0.19879,
    "h": 282.9
  },
  "luminance": 0.11136
}

Semantic roles & 50–950 ramp

primary
#5A47CE
secondary
#CDD59C
accent
#E147CB
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0915
muted
#7E7B83

Preview Lab

Preview with #5A47CE

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

Preview Lab → · Contrast checker → · Palette generator →

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