#5A4EAE#5A4EAE

#5A4EAE is a mid, vivid blue. Relative luminance 0.107; OKLCH L 48.7% C 0.148 H 285.2°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#5A4EAE
RGBrgb(90, 78, 174)
HSLhsl(248, 38%, 49%)
HSVhsv(248, 55%, 68%)
CMYKcmyk(48.3%, 55.2%, 0%, 31.8%)
CIE-LABlab(39.03, 30.44, -49.93)
CIE-LCHlch(39.03, 58.47, 301.37°)
OKLaboklab(48.68% 0.0387 -0.1424)
OKLCHoklch(48.68% 0.148 285.2)
XYZxyz(14.5786, 10.6778, 41.3290)
Luminance0.1068 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4EAE #A2AE4E
analogous
#4E72AE #5A4EAE #8A4EAE
triadic
#5A4EAE #AE5A4E #4EAE5A
tetradic
#5A4EAE #AE4E72 #A2AE4E #4EAE8A
square
#5A4EAE #AE4E72 #A2AE4E #4EAE8A
split-complementary
#5A4EAE #AE8A4E #72AE4E
monochromatic
#2E2859 #443B84 #5A4EAE #8077C2 #A8A1D5

Accessibility & contrast

On white

6.70
#5A4EAE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#5A4EAE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4EAE
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4EAE#FFFFFF#000000##FFFFFF
##5A4EAE1.006.703.146.70
#FFFFFF6.701.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185FB1
Deuteranopia (green-blind)
#1359AC
Tritanopia (blue-blind)
#3D6376
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a4eae;
/* rgb */ color: rgb(90, 78, 174);
/* oklch */ color: oklch(48.7% 0.148 285.2);
Tailwind
colors: {
  custom: {
    50: '#8f80c7',
    500: '#5a4eae',
    950: '#000000',
  },
}
SCSS
$custom: #5a4eae;
$custom-light: #8f80c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4eae",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 174
  },
  "hsl": {
    "h": 247.5,
    "s": 38.095,
    "l": 49.412
  },
  "oklch": {
    "l": 0.48684,
    "c": 0.14758,
    "h": 285.2
  },
  "luminance": 0.10678
}

Semantic roles & 50–950 ramp

primary
#5A4EAE
secondary
#BDC296
accent
#CE5AC0
background
#F9F7FC
surface
#F1EEF8
border
#CBC9D1
text
#0D0A13
muted
#7E7C82

Preview Lab

Preview with #5A4EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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