#5A4CC5#5A4CC5

#5A4CC5 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 50.1% C 0.181 H 282.9°. Best body text is #FFFFFF at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#5A4CC5
RGBrgb(90, 76, 197)
HSLhsl(247, 51%, 54%)
HSVhsv(247, 61%, 77%)
CMYKcmyk(54.3%, 61.4%, 0%, 22.7%)
CIE-LABlab(40.20, 38.78, -61.53)
CIE-LCHlch(40.20, 72.73, 302.22°)
OKLaboklab(50.07% 0.0405 -0.1766)
OKLCHoklch(50.07% 0.181 282.9)
XYZxyz(16.8758, 11.3728, 54.1184)
Luminance0.1137 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4CC5 #B7C54C
analogous
#4C7AC5 #5A4CC5 #964CC5
triadic
#5A4CC5 #C55A4C #4CC55A
tetradic
#5A4CC5 #C54C7A #B7C54C #4CC596
square
#5A4CC5 #C54C7A #B7C54C #4CC596
split-complementary
#5A4CC5 #C5964C #7AC54C
monochromatic
#2E2572 #4034A0 #5A4CC5 #857AD4 #AFA8E3

Accessibility & contrast

On white

6.41
#5A4CC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5A4CC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4CC5
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4CC5#FFFFFF#000000##FFFFFF
##5A4CC51.006.413.276.41
#FFFFFF6.411.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063C9
Deuteranopia (green-blind)
#005BC3
Tritanopia (blue-blind)
#2A6981
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5a4cc5;
/* rgb */ color: rgb(90, 76, 197);
/* oklch */ color: oklch(50.1% 0.181 282.9);
Tailwind
colors: {
  custom: {
    50: '#927fd7',
    500: '#5a4cc5',
    950: '#000000',
  },
}
SCSS
$custom: #5a4cc5;
$custom-light: #927fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4cc5",
  "rgb": {
    "r": 90,
    "g": 76,
    "b": 197
  },
  "hsl": {
    "h": 246.942,
    "s": 51.055,
    "l": 53.529
  },
  "oklch": {
    "l": 0.50065,
    "c": 0.18114,
    "h": 282.9
  },
  "luminance": 0.11374
}

Semantic roles & 50–950 ramp

primary
#5A4CC5
secondary
#CAD09C
accent
#DB4DCA
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0E0A14
muted
#7E7C83

Preview Lab

Preview with #5A4CC5

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

Preview Lab → · Contrast checker → · Palette generator →

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