#5A4FF5#5A4FF5

#5A4FF5 is a mid, highly saturated blue. Relative luminance 0.144; OKLCH L 54.6% C 0.237 H 278.0°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#5A4FF5
RGBrgb(90, 79, 245)
HSLhsl(244, 89%, 64%)
HSVhsv(244, 68%, 96%)
CMYKcmyk(63.3%, 67.8%, 0%, 3.9%)
CIE-LABlab(44.74, 51.96, -81.50)
CIE-LCHlch(44.74, 96.66, 302.52°)
OKLaboklab(54.56% 0.033 -0.2352)
OKLCHoklch(54.56% 0.237 278)
XYZxyz(23.4885, 14.3563, 87.9017)
Luminance0.1436 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4FF5 #EAF54F
analogous
#4F97F5 #5A4FF5 #AD4FF5
triadic
#5A4FF5 #F55A4F #4FF55A
tetradic
#5A4FF5 #F54F97 #EAF54F #4FF5AD
square
#5A4FF5 #F54F97 #EAF54F #4FF5AD
split-complementary
#5A4FF5 #F5AD4F #97F54F
monochromatic
#170BBF #2415F2 #5A4FF5 #9089F8 #C7C3FC

Accessibility & contrast

On white

5.42
#5A4FF5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#5A4FF5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4FF5
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4FF5#FFFFFF#000000##FFFFFF
##5A4FF51.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071FA
Deuteranopia (green-blind)
#0063F2
Tritanopia (blue-blind)
#007B9C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #5a4ff5;
/* rgb */ color: rgb(90, 79, 245);
/* oklch */ color: oklch(54.6% 0.237 278.0);
Tailwind
colors: {
  custom: {
    50: '#9a82fa',
    500: '#5a4ff5',
    950: '#000000',
  },
}
SCSS
$custom: #5a4ff5;
$custom-light: #9a82fa;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4ff5",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 245
  },
  "hsl": {
    "h": 243.976,
    "s": 89.247,
    "l": 63.529
  },
  "oklch": {
    "l": 0.54562,
    "c": 0.23746,
    "h": 278
  },
  "luminance": 0.14358
}

Semantic roles & 50–950 ramp

primary
#5A4FF5
secondary
#E9EDB2
accent
#E600D6
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#100A17
muted
#7F7C85

Preview Lab

Preview with #5A4FF5

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

Preview Lab → · Contrast checker → · Palette generator →

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