#5A549D#5A549D

#5A549D is a mid, moderate blue. Relative luminance 0.109; OKLCH L 48.7% C 0.114 H 285.0°. Best body text is #FFFFFF at 6.58:1 contrast (WCAG AA passes).

Color values

HEX#5A549D
RGBrgb(90, 84, 157)
HSLhsl(245, 30%, 47%)
HSVhsv(245, 46%, 62%)
CMYKcmyk(42.7%, 46.5%, 0%, 38.4%)
CIE-LABlab(39.49, 21.49, -39.06)
CIE-LCHlch(39.49, 44.59, 298.82°)
OKLaboklab(48.69% 0.0297 -0.1105)
OKLCHoklch(48.69% 0.114 285)
XYZxyz(13.4708, 10.9481, 33.2952)
Luminance0.1095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A549D #979D54
analogous
#54729D #5A549D #7F549D
triadic
#5A549D #9D5A54 #549D5A
tetradic
#5A549D #9D5472 #979D54 #549D7F
square
#5A549D #9D5472 #979D54 #549D7F
split-complementary
#5A549D #9D7F54 #729D54
monochromatic
#2C294D #433F75 #5A549D #7D78B7 #A39FCC

Accessibility & contrast

On white

6.58
#5A549D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.19
#5A549D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A549D
6.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A549D#FFFFFF#000000##FFFFFF
##5A549D1.006.583.196.58
#FFFFFF6.581.0021.001.00
#0000003.1921.001.0021.00
##FFFFFF6.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385FA0
Deuteranopia (green-blind)
#365B9B
Tritanopia (blue-blind)
#466371
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5a549d;
/* rgb */ color: rgb(90, 84, 157);
/* oklch */ color: oklch(48.7% 0.114 285.0);
Tailwind
colors: {
  custom: {
    50: '#8c84ba',
    500: '#5a549d',
    950: '#000000',
  },
}
SCSS
$custom: #5a549d;
$custom-light: #8c84ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5a549d",
  "rgb": {
    "r": 90,
    "g": 84,
    "b": 157
  },
  "hsl": {
    "h": 244.932,
    "s": 30.29,
    "l": 47.255
  },
  "oklch": {
    "l": 0.48688,
    "c": 0.11442,
    "h": 285
  },
  "luminance": 0.10949
}

Semantic roles & 50–950 ramp

primary
#5A549D
secondary
#B6B994
accent
#C761BE
background
#F8F8FB
surface
#F0EFF6
border
#CBCAD0
text
#0C0A12
muted
#7D7C81

Preview Lab

Preview with #5A549D

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

Preview Lab → · Contrast checker → · Palette generator →

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