#5A4EAA#5A4EAA

#5A4EAA is a mid, vivid blue. Relative luminance 0.105; OKLCH L 48.4% C 0.142 H 285.7°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#5A4EAA
RGBrgb(90, 78, 170)
HSLhsl(248, 37%, 49%)
HSVhsv(248, 54%, 67%)
CMYKcmyk(47.1%, 54.1%, 0%, 33.3%)
CIE-LABlab(38.77, 29.21, -47.98)
CIE-LCHlch(38.77, 56.17, 301.33°)
OKLaboklab(48.4% 0.0386 -0.1367)
OKLCHoklch(48.4% 0.142 285.7)
XYZxyz(14.1944, 10.5241, 39.3059)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4EAA #9EAA4E
analogous
#4E70AA #5A4EAA #884EAA
triadic
#5A4EAA #AA5A4E #4EAA5A
tetradic
#5A4EAA #AA4E70 #9EAA4E #4EAA88
square
#5A4EAA #AA4E70 #9EAA4E #4EAA88
split-complementary
#5A4EAA #AA884E #70AA4E
monochromatic
#2E2856 #443B80 #5A4EAA #7F75C0 #A69FD3

Accessibility & contrast

On white

6.76
#5A4EAA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#5A4EAA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4EAA
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4EAA#FFFFFF#000000##FFFFFF
##5A4EAA1.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5EAD
Deuteranopia (green-blind)
#1C59A8
Tritanopia (blue-blind)
#406274
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5a4eaa;
/* rgb */ color: rgb(90, 78, 170);
/* oklch */ color: oklch(48.4% 0.142 285.7);
Tailwind
colors: {
  custom: {
    50: '#8e80c4',
    500: '#5a4eaa',
    950: '#000000',
  },
}
SCSS
$custom: #5a4eaa;
$custom-light: #8e80c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4eaa",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 170
  },
  "hsl": {
    "h": 247.826,
    "s": 37.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.48401,
    "c": 0.14203,
    "h": 285.7
  },
  "luminance": 0.10525
}

Semantic roles & 50–950 ramp

primary
#5A4EAA
secondary
#BAC094
accent
#CD5BBE
background
#F9F7FC
surface
#F1EEF8
border
#CBC9D1
text
#0D0A13
muted
#7E7C82

Preview Lab

Preview with #5A4EAA

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

Preview Lab → · Contrast checker → · Palette generator →

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