#5A4CBE#5A4CBE

#5A4CBE is a mid, vivid blue. Relative luminance 0.111; OKLCH L 49.5% C 0.172 H 283.7°. Best body text is #FFFFFF at 6.54:1 contrast (WCAG AA passes).

Color values

HEX#5A4CBE
RGBrgb(90, 76, 190)
HSLhsl(247, 47%, 52%)
HSVhsv(247, 60%, 75%)
CMYKcmyk(52.6%, 60%, 0%, 25.5%)
CIE-LABlab(39.68, 36.61, -58.29)
CIE-LCHlch(39.68, 68.83, 302.13°)
OKLaboklab(49.52% 0.0409 -0.167)
OKLCHoklch(49.52% 0.172 283.7)
XYZxyz(16.0923, 11.0594, 49.9919)
Luminance0.1106 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4CBE #B0BE4C
analogous
#4C77BE #5A4CBE #934CBE
triadic
#5A4CBE #BE5A4C #4CBE5A
tetradic
#5A4CBE #BE4C77 #B0BE4C #4CBE93
square
#5A4CBE #BE4C77 #B0BE4C #4CBE93
split-complementary
#5A4CBE #BE934C #77BE4C
monochromatic
#2E2669 #423796 #5A4CBE #8379CE #ADA6DF

Accessibility & contrast

On white

6.54
#5A4CBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#5A4CBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4CBE
6.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4CBE#FFFFFF#000000##FFFFFF
##5A4CBE1.006.543.216.54
#FFFFFF6.541.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C2
Deuteranopia (green-blind)
#005ABC
Tritanopia (blue-blind)
#31677E
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5a4cbe;
/* rgb */ color: rgb(90, 76, 190);
/* oklch */ color: oklch(49.5% 0.172 283.7);
Tailwind
colors: {
  custom: {
    50: '#917ed2',
    500: '#5a4cbe',
    950: '#000000',
  },
}
SCSS
$custom: #5a4cbe;
$custom-light: #917ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4cbe",
  "rgb": {
    "r": 90,
    "g": 76,
    "b": 190
  },
  "hsl": {
    "h": 247.368,
    "s": 46.721,
    "l": 52.157
  },
  "oklch": {
    "l": 0.49519,
    "c": 0.17195,
    "h": 283.7
  },
  "luminance": 0.1106
}

Semantic roles & 50–950 ramp

primary
#5A4CBE
secondary
#C6CC9A
accent
#D651C6
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5A4CBE

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

Preview Lab → · Contrast checker → · Palette generator →

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