#5A4AEF#5A4AEF

#5A4AEF is a mid, highly saturated blue. Relative luminance 0.133; OKLCH L 53.3% C 0.236 H 279.1°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#5A4AEF
RGBrgb(90, 74, 239)
HSLhsl(246, 84%, 61%)
HSVhsv(246, 69%, 94%)
CMYKcmyk(62.3%, 69%, 0%, 6.3%)
CIE-LABlab(43.21, 52.88, -80.64)
CIE-LCHlch(43.21, 96.43, 303.25°)
OKLaboklab(53.31% 0.0374 -0.2326)
OKLCHoklch(53.31% 0.236 279.1)
XYZxyz(22.2402, 13.3015, 83.0401)
Luminance0.1330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4AEF #DFEF4A
analogous
#4A8DEF #5A4AEF #AD4AEF
triadic
#5A4AEF #EF5A4A #4AEF5A
tetradic
#5A4AEF #EF4A8D #DFEF4A #4AEFAD
square
#5A4AEF #EF4A8D #DFEF4A #4AEFAD
split-complementary
#5A4AEF #EFAD4A #8DEF4A
monochromatic
#1F0FAF #2914E7 #5A4AEF #8D82F4 #C1BAF9

Accessibility & contrast

On white

5.74
#5A4AEF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#5A4AEF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4AEF
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4AEF#FFFFFF#000000##FFFFFF
##5A4AEF1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CF4
Deuteranopia (green-blind)
#005FEC
Tritanopia (blue-blind)
#007797
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5a4aef;
/* rgb */ color: rgb(90, 74, 239);
/* oklch */ color: oklch(53.3% 0.236 279.1);
Tailwind
colors: {
  custom: {
    50: '#997ef6',
    500: '#5a4aef',
    950: '#000000',
  },
}
SCSS
$custom: #5a4aef;
$custom-light: #997ef6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4aef",
  "rgb": {
    "r": 90,
    "g": 74,
    "b": 239
  },
  "hsl": {
    "h": 245.818,
    "s": 83.756,
    "l": 61.373
  },
  "oklch": {
    "l": 0.53308,
    "c": 0.23559,
    "h": 279.1
  },
  "luminance": 0.13303
}

Semantic roles & 50–950 ramp

primary
#5A4AEF
secondary
#E3E9AC
accent
#E005CB
background
#FAF7FF
surface
#F4EEFF
border
#CEC9D7
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5A4AEF

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

Preview Lab → · Contrast checker → · Palette generator →

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