#5A4BBD#5A4BBD

#5A4BBD is a mid, vivid blue. Relative luminance 0.109; OKLCH L 49.3% C 0.172 H 284.1°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#5A4BBD
RGBrgb(90, 75, 189)
HSLhsl(248, 46%, 52%)
HSVhsv(248, 60%, 74%)
CMYKcmyk(52.4%, 60.3%, 0%, 25.9%)
CIE-LABlab(39.38, 36.90, -58.20)
CIE-LCHlch(39.38, 68.91, 302.37°)
OKLaboklab(49.27% 0.0419 -0.1668)
OKLCHoklch(49.27% 0.172 284.1)
XYZxyz(15.9151, 10.8791, 49.3955)
Luminance0.1088 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4BBD #AEBD4B
analogous
#4B75BD #5A4BBD #934BBD
triadic
#5A4BBD #BD5A4B #4BBD5A
tetradic
#5A4BBD #BD4B75 #AEBD4B #4BBD93
square
#5A4BBD #BD4B75 #AEBD4B #4BBD93
split-complementary
#5A4BBD #BD934B #75BD4B
monochromatic
#2F2668 #433694 #5A4BBD #8378CD #ACA5DE

Accessibility & contrast

On white

6.61
#5A4BBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#5A4BBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4BBD
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4BBD#FFFFFF#000000##FFFFFF
##5A4BBD1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C1
Deuteranopia (green-blind)
#0059BB
Tritanopia (blue-blind)
#32667D
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5a4bbd;
/* rgb */ color: rgb(90, 75, 189);
/* oklch */ color: oklch(49.3% 0.172 284.1);
Tailwind
colors: {
  custom: {
    50: '#917ed2',
    500: '#5a4bbd',
    950: '#000000',
  },
}
SCSS
$custom: #5a4bbd;
$custom-light: #917ed2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4bbd",
  "rgb": {
    "r": 90,
    "g": 75,
    "b": 189
  },
  "hsl": {
    "h": 247.895,
    "s": 46.341,
    "l": 51.765
  },
  "oklch": {
    "l": 0.49272,
    "c": 0.17196,
    "h": 284.1
  },
  "luminance": 0.1088
}

Semantic roles & 50–950 ramp

primary
#5A4BBD
secondary
#C4CB99
accent
#D652C5
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5A4BBD

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

Preview Lab → · Contrast checker → · Palette generator →

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