#5A4EA2#5A4EA2

#5A4EA2 is a mid, vivid blue. Relative luminance 0.102; OKLCH L 47.9% C 0.131 H 286.9°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#5A4EA2
RGBrgb(90, 78, 162)
HSLhsl(249, 35%, 47%)
HSVhsv(249, 52%, 64%)
CMYKcmyk(44.4%, 51.9%, 0%, 36.5%)
CIE-LABlab(38.25, 26.77, -44.04)
CIE-LCHlch(38.25, 51.54, 301.30°)
OKLaboklab(47.85% 0.0381 -0.1251)
OKLCHoklch(47.85% 0.131 286.9)
XYZxyz(13.4606, 10.2306, 35.4409)
Luminance0.1023 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4EA2 #96A24E
analogous
#4E6CA2 #5A4EA2 #844EA2
triadic
#5A4EA2 #A25A4E #4EA25A
tetradic
#5A4EA2 #A24E6C #96A24E #4EA284
square
#5A4EA2 #A24E6C #96A24E #4EA284
split-complementary
#5A4EA2 #A2844E #6CA24E
monochromatic
#2C264F #433A79 #5A4EA2 #7D72BB #A39BCF

Accessibility & contrast

On white

6.89
#5A4EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#5A4EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4EA2
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4EA2#FFFFFF#000000##FFFFFF
##5A4EA21.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295CA5
Deuteranopia (green-blind)
#2858A0
Tritanopia (blue-blind)
#446070
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #5a4ea2;
/* rgb */ color: rgb(90, 78, 162);
/* oklch */ color: oklch(47.9% 0.131 286.9);
Tailwind
colors: {
  custom: {
    50: '#8d80be',
    500: '#5a4ea2',
    950: '#000000',
  },
}
SCSS
$custom: #5a4ea2;
$custom-light: #8d80be;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4ea2",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 248.571,
    "s": 35,
    "l": 47.059
  },
  "oklch": {
    "l": 0.47853,
    "c": 0.13077,
    "h": 286.9
  },
  "luminance": 0.10231
}

Semantic roles & 50–950 ramp

primary
#5A4EA2
secondary
#B5BC90
accent
#CB5DBB
background
#F8F7FB
surface
#F0EEF7
border
#CBC9D0
text
#0D0A12
muted
#7D7C81

Preview Lab

Preview with #5A4EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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