#5A4EE4#5A4EE4

#5A4EE4 is a mid, highly saturated blue. Relative luminance 0.132; OKLCH L 52.9% C 0.218 H 279.5°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#5A4EE4
RGBrgb(90, 78, 228)
HSLhsl(245, 74%, 60%)
HSVhsv(245, 66%, 89%)
CMYKcmyk(60.5%, 65.8%, 0%, 10.6%)
CIE-LABlab(43.10, 47.26, -74.61)
CIE-LCHlch(43.10, 88.32, 302.35°)
OKLaboklab(52.94% 0.0359 -0.2149)
OKLCHoklch(52.94% 0.218 279.5)
XYZxyz(20.9400, 13.2223, 74.8324)
Luminance0.1322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4EE4 #D8E44E
analogous
#4E8DE4 #5A4EE4 #A54EE4
triadic
#5A4EE4 #E45A4E #4EE45A
tetradic
#5A4EE4 #E44E8D #D8E44E #4EE4A5
square
#5A4EE4 #E44E8D #D8E44E #4EE4A5
split-complementary
#5A4EE4 #E4A54E #8DE44E
monochromatic
#23189F #2F20D4 #5A4EE4 #8C83EC #BDB8F4

Accessibility & contrast

On white

5.76
#5A4EE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#5A4EE4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4EE4
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4EE4#FFFFFF#000000##FFFFFF
##5A4EE41.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE9
Deuteranopia (green-blind)
#0060E1
Tritanopia (blue-blind)
#007592
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5a4ee4;
/* rgb */ color: rgb(90, 78, 228);
/* oklch */ color: oklch(52.9% 0.218 279.5);
Tailwind
colors: {
  custom: {
    50: '#9781ee',
    500: '#5a4ee4',
    950: '#000000',
  },
}
SCSS
$custom: #5a4ee4;
$custom-light: #9781ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4ee4",
  "rgb": {
    "r": 90,
    "g": 78,
    "b": 228
  },
  "hsl": {
    "h": 244.8,
    "s": 73.529,
    "l": 60
  },
  "oklch": {
    "l": 0.52936,
    "c": 0.21793,
    "h": 279.5
  },
  "luminance": 0.13224
}

Semantic roles & 50–950 ramp

primary
#5A4EE4
secondary
#DFE4AA
accent
#F038E1
background
#FAF7FE
surface
#F3EEFD
border
#CDC9D5
text
#0F0A16
muted
#7F7C84

Preview Lab

Preview with #5A4EE4

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

Preview Lab → · Contrast checker → · Palette generator →

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