#5A4DBE#5A4DBE

#5A4DBE is a mid, vivid blue. Relative luminance 0.112; OKLCH L 49.7% C 0.171 H 283.5°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#5A4DBE
RGBrgb(90, 77, 190)
HSLhsl(247, 47%, 52%)
HSVhsv(247, 59%, 75%)
CMYKcmyk(52.6%, 59.5%, 0%, 25.5%)
CIE-LABlab(39.91, 36.00, -57.92)
CIE-LCHlch(39.91, 68.19, 301.87°)
OKLaboklab(49.69% 0.0398 -0.1659)
OKLCHoklch(49.69% 0.171 283.5)
XYZxyz(16.1618, 11.1982, 50.0151)
Luminance0.1120 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4DBE #B1BE4D
analogous
#4D78BE #5A4DBE #934DBE
triadic
#5A4DBE #BE5A4D #4DBE5A
tetradic
#5A4DBE #BE4D78 #B1BE4D #4DBE93
square
#5A4DBE #BE4D78 #B1BE4D #4DBE93
split-complementary
#5A4DBE #BE934D #78BE4D
monochromatic
#2E276A #423797 #5A4DBE #847ACE #ADA7DF

Accessibility & contrast

On white

6.48
#5A4DBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#5A4DBE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4DBE
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4DBE#FFFFFF#000000##FFFFFF
##5A4DBE1.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C2
Deuteranopia (green-blind)
#005ABC
Tritanopia (blue-blind)
#31687E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5a4dbe;
/* rgb */ color: rgb(90, 77, 190);
/* oklch */ color: oklch(49.7% 0.171 283.5);
Tailwind
colors: {
  custom: {
    50: '#917fd2',
    500: '#5a4dbe',
    950: '#000000',
  },
}
SCSS
$custom: #5a4dbe;
$custom-light: #917fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4dbe",
  "rgb": {
    "r": 90,
    "g": 77,
    "b": 190
  },
  "hsl": {
    "h": 246.903,
    "s": 46.502,
    "l": 52.353
  },
  "oklch": {
    "l": 0.4969,
    "c": 0.17063,
    "h": 283.5
  },
  "luminance": 0.11199
}

Semantic roles & 50–950 ramp

primary
#5A4DBE
secondary
#C6CC9B
accent
#D652C7
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5A4DBE

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

Preview Lab → · Contrast checker → · Palette generator →

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