#5A4FBB#5A4FBB

#5A4FBB is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.8% C 0.164 H 283.3°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#5A4FBB
RGBrgb(90, 79, 187)
HSLhsl(246, 44%, 52%)
HSVhsv(246, 58%, 73%)
CMYKcmyk(51.9%, 57.8%, 0%, 26.7%)
CIE-LABlab(40.17, 33.85, -55.75)
CIE-LCHlch(40.17, 65.22, 301.27°)
OKLaboklab(49.81% 0.0377 -0.1595)
OKLCHoklch(49.81% 0.164 283.3)
XYZxyz(15.9794, 11.3526, 48.3534)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4FBB #B0BB4F
analogous
#4F7ABB #5A4FBB #904FBB
triadic
#5A4FBB #BB5A4F #4FBB5A
tetradic
#5A4FBB #BB4F7A #B0BB4F #4FBB90
square
#5A4FBB #BB4F7A #B0BB4F #4FBB90
split-complementary
#5A4FBB #BB904F #7ABB4F
monochromatic
#2E2868 #423994 #5A4FBB #837BCC #ADA7DD

Accessibility & contrast

On white

6.42
#5A4FBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#5A4FBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4FBB
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4FBB#FFFFFF#000000##FFFFFF
##5A4FBB1.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062BF
Deuteranopia (green-blind)
#005BB9
Tritanopia (blue-blind)
#33687D
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5a4fbb;
/* rgb */ color: rgb(90, 79, 187);
/* oklch */ color: oklch(49.8% 0.164 283.3);
Tailwind
colors: {
  custom: {
    50: '#9081d0',
    500: '#5a4fbb',
    950: '#000000',
  },
}
SCSS
$custom: #5a4fbb;
$custom-light: #9081d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4fbb",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 187
  },
  "hsl": {
    "h": 246.111,
    "s": 44.262,
    "l": 52.157
  },
  "oklch": {
    "l": 0.4981,
    "c": 0.16393,
    "h": 283.3
  },
  "luminance": 0.11353
}

Semantic roles & 50–950 ramp

primary
#5A4FBB
secondary
#C6CA9B
accent
#D454C7
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #5A4FBB

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

Preview Lab → · Contrast checker → · Palette generator →

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