#5A4BB9#5A4BB9

#5A4BB9 is a mid, vivid blue. Relative luminance 0.107; OKLCH L 49.0% C 0.167 H 284.6°. Best body text is #FFFFFF at 6.68:1 contrast (WCAG AA passes).

Color values

HEX#5A4BB9
RGBrgb(90, 75, 185)
HSLhsl(248, 44%, 51%)
HSVhsv(248, 59%, 73%)
CMYKcmyk(51.4%, 59.5%, 0%, 27.5%)
CIE-LABlab(39.08, 35.66, -56.33)
CIE-LCHlch(39.08, 66.67, 302.34°)
OKLaboklab(48.97% 0.0421 -0.1613)
OKLCHoklch(48.97% 0.167 284.6)
XYZxyz(15.4869, 10.7078, 47.1403)
Luminance0.1071 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4BB9 #AAB94B
analogous
#4B73B9 #5A4BB9 #914BB9
triadic
#5A4BB9 #B95A4B #4BB95A
tetradic
#5A4BB9 #B94B73 #AAB94B #4BB991
square
#5A4BB9 #B94B73 #AAB94B #4BB991
split-complementary
#5A4BB9 #B9914B #73B94B
monochromatic
#2F2763 #44388F #5A4BB9 #8277CA #ABA3DB

Accessibility & contrast

On white

6.68
#5A4BB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5A4BB9
6.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4BB9#FFFFFF#000000##FFFFFF
##5A4BB91.006.683.146.68
#FFFFFF6.681.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBD
Deuteranopia (green-blind)
#0059B7
Tritanopia (blue-blind)
#35657B
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #5a4bb9;
/* rgb */ color: rgb(90, 75, 185);
/* oklch */ color: oklch(49.0% 0.167 284.6);
Tailwind
colors: {
  custom: {
    50: '#907ecf',
    500: '#5a4bb9',
    950: '#000000',
  },
}
SCSS
$custom: #5a4bb9;
$custom-light: #907ecf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4bb9",
  "rgb": {
    "r": 90,
    "g": 75,
    "b": 185
  },
  "hsl": {
    "h": 248.182,
    "s": 44,
    "l": 50.98
  },
  "oklch": {
    "l": 0.48966,
    "c": 0.16666,
    "h": 284.6
  },
  "luminance": 0.10709
}

Semantic roles & 50–950 ramp

primary
#5A4BB9
secondary
#C2C898
accent
#D454C2
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #5A4BB9

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

Preview Lab → · Contrast checker → · Palette generator →

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