#5A4DBA#5A4DBA

#5A4DBA is a mid, vivid blue. Relative luminance 0.110; OKLCH L 49.4% C 0.165 H 284.0°. Best body text is #FFFFFF at 6.55:1 contrast (WCAG AA passes).

Color values

HEX#5A4DBA
RGBrgb(90, 77, 186)
HSLhsl(247, 44%, 52%)
HSVhsv(247, 59%, 73%)
CMYKcmyk(51.6%, 58.6%, 0%, 27.1%)
CIE-LABlab(39.62, 34.76, -56.04)
CIE-LCHlch(39.62, 65.95, 301.81°)
OKLaboklab(49.39% 0.0399 -0.1604)
OKLCHoklch(49.39% 0.165 284)
XYZxyz(15.7306, 11.0257, 47.7442)
Luminance0.1103 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4DBA #ADBA4D
analogous
#4D77BA #5A4DBA #914DBA
triadic
#5A4DBA #BA5A4D #4DBA5A
tetradic
#5A4DBA #BA4D77 #ADBA4D #4DBA91
square
#5A4DBA #BA4D77 #ADBA4D #4DBA91
split-complementary
#5A4DBA #BA914D #77BA4D
monochromatic
#2F2765 #433891 #5A4DBA #8379CB #ACA5DC

Accessibility & contrast

On white

6.55
#5A4DBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.21
#5A4DBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4DBA
6.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4DBA#FFFFFF#000000##FFFFFF
##5A4DBA1.006.553.216.55
#FFFFFF6.551.0021.001.00
#0000003.2121.001.0021.00
##FFFFFF6.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061BE
Deuteranopia (green-blind)
#005AB8
Tritanopia (blue-blind)
#34667C
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #5a4dba;
/* rgb */ color: rgb(90, 77, 186);
/* oklch */ color: oklch(49.4% 0.165 284.0);
Tailwind
colors: {
  custom: {
    50: '#907fcf',
    500: '#5a4dba',
    950: '#000000',
  },
}
SCSS
$custom: #5a4dba;
$custom-light: #907fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4dba",
  "rgb": {
    "r": 90,
    "g": 77,
    "b": 186
  },
  "hsl": {
    "h": 247.156,
    "s": 44.13,
    "l": 51.569
  },
  "oklch": {
    "l": 0.49386,
    "c": 0.1653,
    "h": 284
  },
  "luminance": 0.11027
}

Semantic roles & 50–950 ramp

primary
#5A4DBA
secondary
#C4C999
accent
#D454C5
background
#F9F7FC
surface
#F2EEF9
border
#CCC9D2
text
#0D0A14
muted
#7E7C82

Preview Lab

Preview with #5A4DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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