#5A4FF2#5A4FF2

#5A4FF2 is a mid, highly saturated blue. Relative luminance 0.142; OKLCH L 54.3% C 0.234 H 278.2°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#5A4FF2
RGBrgb(90, 79, 242)
HSLhsl(244, 86%, 63%)
HSVhsv(244, 67%, 95%)
CMYKcmyk(62.8%, 67.4%, 0%, 5.1%)
CIE-LABlab(44.48, 51.03, -80.24)
CIE-LCHlch(44.48, 95.10, 302.46°)
OKLaboklab(54.3% 0.0334 -0.2315)
OKLCHoklch(54.3% 0.234 278.2)
XYZxyz(23.0343, 14.1746, 85.5093)
Luminance0.1418 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4FF2 #E7F24F
analogous
#4F95F2 #5A4FF2 #AB4FF2
triadic
#5A4FF2 #F25A4F #4FF25A
tetradic
#5A4FF2 #F24F95 #E7F24F #4FF2AB
square
#5A4FF2 #F24F95 #E7F24F #4FF2AB
split-complementary
#5A4FF2 #F2AB4F #95F24F
monochromatic
#190EB9 #2516EE #5A4FF2 #8F88F6 #C5C1FA

Accessibility & contrast

On white

5.48
#5A4FF2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#5A4FF2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4FF2
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4FF2#FFFFFF#000000##FFFFFF
##5A4FF21.005.483.845.48
#FFFFFF5.481.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070F7
Deuteranopia (green-blind)
#0062EF
Tritanopia (blue-blind)
#007A9A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5a4ff2;
/* rgb */ color: rgb(90, 79, 242);
/* oklch */ color: oklch(54.3% 0.234 278.2);
Tailwind
colors: {
  custom: {
    50: '#9982f8',
    500: '#5a4ff2',
    950: '#000000',
  },
}
SCSS
$custom: #5a4ff2;
$custom-light: #9982f8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4ff2",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 242
  },
  "hsl": {
    "h": 244.049,
    "s": 86.243,
    "l": 62.941
  },
  "oklch": {
    "l": 0.54298,
    "c": 0.23386,
    "h": 278.2
  },
  "luminance": 0.14176
}

Semantic roles & 50–950 ramp

primary
#5A4FF2
secondary
#E8ECB1
accent
#E303D4
background
#FAF8FF
surface
#F4EFFF
border
#CECAD7
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5A4FF2

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

Preview Lab → · Contrast checker → · Palette generator →

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