#5A4ABA#5A4ABA

#5A4ABA is a mid, vivid blue. Relative luminance 0.106; OKLCH L 48.9% C 0.169 H 284.7°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#5A4ABA
RGBrgb(90, 74, 186)
HSLhsl(249, 45%, 51%)
HSVhsv(249, 60%, 73%)
CMYKcmyk(51.6%, 60.2%, 0%, 27.1%)
CIE-LABlab(38.93, 36.57, -57.17)
CIE-LCHlch(38.93, 67.87, 302.61°)
OKLaboklab(48.87% 0.0431 -0.1637)
OKLCHoklch(48.87% 0.169 284.7)
XYZxyz(15.5255, 10.6156, 47.6758)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4ABA #AABA4A
analogous
#4A72BA #5A4ABA #924ABA
triadic
#5A4ABA #BA5A4A #4ABA5A
tetradic
#5A4ABA #BA4A72 #AABA4A #4ABA92
square
#5A4ABA #BA4A72 #AABA4A #4ABA92
split-complementary
#5A4ABA #BA924A #72BA4A
monochromatic
#2F2664 #443790 #5A4ABA #8276CB #ABA3DC

Accessibility & contrast

On white

6.72
#5A4ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#5A4ABA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4ABA
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4ABA#FFFFFF#000000##FFFFFF
##5A4ABA1.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#0058B8
Tritanopia (blue-blind)
#35647B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a4aba;
/* rgb */ color: rgb(90, 74, 186);
/* oklch */ color: oklch(48.9% 0.169 284.7);
Tailwind
colors: {
  custom: {
    50: '#907dd0',
    500: '#5a4aba',
    950: '#000000',
  },
}
SCSS
$custom: #5a4aba;
$custom-light: #907dd0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4aba",
  "rgb": {
    "r": 90,
    "g": 74,
    "b": 186
  },
  "hsl": {
    "h": 248.571,
    "s": 44.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48872,
    "c": 0.16933,
    "h": 284.7
  },
  "luminance": 0.10616
}

Semantic roles & 50–950 ramp

primary
#5A4ABA
secondary
#C2C997
accent
#D553C2
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #5A4ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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