#5A4EBE#5A4EBE

#5A4EBE is a mid, vivid blue. Relative luminance 0.113; OKLCH L 49.9% C 0.169 H 283.2°. Best body text is #FFFFFF at 6.43:1 contrast (WCAG AA passes).

Color values

HEX#5A4EBE
RGBrgb(90, 78, 190)
HSLhsl(246, 46%, 53%)
HSVhsv(246, 59%, 75%)
CMYKcmyk(52.6%, 58.9%, 0%, 25.5%)
CIE-LABlab(40.15, 35.40, -57.54)
CIE-LCHlch(40.15, 67.55, 301.60°)
OKLaboklab(49.86% 0.0388 -0.1648)
OKLCHoklch(49.86% 0.169 283.2)
XYZxyz(16.2323, 11.3392, 50.0386)
Luminance0.1134 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4EBE #B2BE4E
analogous
#4E7ABE #5A4EBE #924EBE
triadic
#5A4EBE #BE5A4E #4EBE5A
tetradic
#5A4EBE #BE4E7A #B2BE4E #4EBE92
square
#5A4EBE #BE4E7A #B2BE4E #4EBE92
split-complementary
#5A4EBE #BE924E #7ABE4E
monochromatic
#2E276A #423897 #5A4EBE #847BCE #ADA8DF

Accessibility & contrast

On white

6.43
#5A4EBE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #5A4EBE
6.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4EBE#FFFFFF#000000##FFFFFF
##5A4EBE1.006.433.276.43
#FFFFFF6.431.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C2
Deuteranopia (green-blind)
#005BBC
Tritanopia (blue-blind)
#31687E
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #5a4ebe;
/* rgb */ color: rgb(90, 78, 190);
/* oklch */ color: oklch(49.9% 0.169 283.2);
Tailwind
colors: {
  custom: {
    50: '#9180d2',
    500: '#5a4ebe',
    950: '#000000',
  },
}
SCSS
$custom: #5a4ebe;
$custom-light: #9180d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4ebe",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 190
  },
  "hsl": {
    "h": 246.429,
    "s": 46.281,
    "l": 52.549
  },
  "oklch": {
    "l": 0.49862,
    "c": 0.16929,
    "h": 283.2
  },
  "luminance": 0.1134
}

Semantic roles & 50–950 ramp

primary
#5A4EBE
secondary
#C7CC9C
accent
#D652C8
background
#F9F7FD
surface
#F2EEFA
border
#CCC9D3
text
#0D0A14
muted
#7E7C83

Preview Lab

Preview with #5A4EBE

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

Preview Lab → · Contrast checker → · Palette generator →

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