#5A4AEB#5A4AEB

#5A4AEB is a mid, highly saturated blue. Relative luminance 0.131; OKLCH L 53.0% C 0.231 H 279.5°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#5A4AEB
RGBrgb(90, 74, 235)
HSLhsl(246, 80%, 61%)
HSVhsv(246, 69%, 92%)
CMYKcmyk(61.7%, 68.5%, 0%, 7.8%)
CIE-LABlab(42.87, 51.66, -78.95)
CIE-LCHlch(42.87, 94.35, 303.20°)
OKLaboklab(52.95% 0.038 -0.2277)
OKLCHoklch(52.95% 0.231 279.5)
XYZxyz(21.6558, 13.0677, 79.9623)
Luminance0.1307 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4AEB #DBEB4A
analogous
#4A8AEB #5A4AEB #AB4AEB
triadic
#5A4AEB #EB5A4A #4AEB5A
tetradic
#5A4AEB #EB4A8A #DBEB4A #4AEBAB
square
#5A4AEB #EB4A8A #DBEB4A #4AEBAB
split-complementary
#5A4AEB #EBAB4A #8AEB4A
monochromatic
#2113A8 #2C19DF #5A4AEB #8C81F1 #BEB8F7

Accessibility & contrast

On white

5.81
#5A4AEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#5A4AEB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4AEB
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4AEB#FFFFFF#000000##FFFFFF
##5A4AEB1.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BF0
Deuteranopia (green-blind)
#005FE8
Tritanopia (blue-blind)
#007595
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #5a4aeb;
/* rgb */ color: rgb(90, 74, 235);
/* oklch */ color: oklch(53.0% 0.231 279.5);
Tailwind
colors: {
  custom: {
    50: '#987ef3',
    500: '#5a4aeb',
    950: '#000000',
  },
}
SCSS
$custom: #5a4aeb;
$custom-light: #987ef3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4aeb",
  "rgb": {
    "r": 90,
    "g": 74,
    "b": 235
  },
  "hsl": {
    "h": 245.963,
    "s": 80.1,
    "l": 60.588
  },
  "oklch": {
    "l": 0.52952,
    "c": 0.23083,
    "h": 279.5
  },
  "luminance": 0.13069
}

Semantic roles & 50–950 ramp

primary
#5A4AEB
secondary
#E1E7AA
accent
#DC09C7
background
#FAF7FF
surface
#F4EEFE
border
#CEC9D6
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5A4AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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