#5A4EBD#5A4EBD

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

Color values

HEX#5A4EBD
RGBrgb(90, 78, 189)
HSLhsl(246, 46%, 52%)
HSVhsv(246, 59%, 74%)
CMYKcmyk(52.4%, 58.7%, 0%, 25.9%)
CIE-LABlab(40.07, 35.09, -57.07)
CIE-LCHlch(40.07, 66.99, 301.58°)
OKLaboklab(49.79% 0.0388 -0.1634)
OKLCHoklch(49.79% 0.168 283.3)
XYZxyz(16.1234, 11.2957, 49.4649)
Luminance0.1130 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4EBD #B1BD4E
analogous
#4E7ABD #5A4EBD #914EBD
triadic
#5A4EBD #BD5A4E #4EBD5A
tetradic
#5A4EBD #BD4E7A #B1BD4E #4EBD91
square
#5A4EBD #BD4E7A #B1BD4E #4EBD91
split-complementary
#5A4EBD #BD914E #7ABD4E
monochromatic
#2E2769 #423896 #5A4EBD #847BCE #ADA7DE

Accessibility & contrast

On white

6.44
#5A4EBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#5A4EBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4EBD
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4EBD#FFFFFF#000000##FFFFFF
##5A4EBD1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C1
Deuteranopia (green-blind)
#005BBB
Tritanopia (blue-blind)
#32687E
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5a4ebd;
/* rgb */ color: rgb(90, 78, 189);
/* oklch */ color: oklch(49.8% 0.168 283.3);
Tailwind
colors: {
  custom: {
    50: '#9180d2',
    500: '#5a4ebd',
    950: '#000000',
  },
}
SCSS
$custom: #5a4ebd;
$custom-light: #9180d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4ebd",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 189
  },
  "hsl": {
    "h": 246.486,
    "s": 45.679,
    "l": 52.353
  },
  "oklch": {
    "l": 0.49786,
    "c": 0.16797,
    "h": 283.3
  },
  "luminance": 0.11297
}

Semantic roles & 50–950 ramp

primary
#5A4EBD
secondary
#C6CC9B
accent
#D552C7
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5A4EBD

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

Preview Lab → · Contrast checker → · Palette generator →

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