#5A4FE5#5A4FE5

#5A4FE5 is a mid, highly saturated blue. Relative luminance 0.134; OKLCH L 53.2% C 0.218 H 279.2°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#5A4FE5
RGBrgb(90, 79, 229)
HSLhsl(244, 74%, 60%)
HSVhsv(244, 66%, 90%)
CMYKcmyk(60.7%, 65.5%, 0%, 10.2%)
CIE-LABlab(43.39, 47.00, -74.69)
CIE-LCHlch(43.39, 88.25, 302.18°)
OKLaboklab(53.18% 0.035 -0.2152)
OKLCHoklch(53.18% 0.218 279.2)
XYZxyz(21.1508, 13.4212, 75.5895)
Luminance0.1342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4FE5 #DAE54F
analogous
#4F8FE5 #5A4FE5 #A54FE5
triadic
#5A4FE5 #E55A4F #4FE55A
tetradic
#5A4FE5 #E54F8F #DAE54F #4FE5A5
square
#5A4FE5 #E54F8F #DAE54F #4FE5A5
split-complementary
#5A4FE5 #E5A54F #8FE54F
monochromatic
#2218A2 #2D20D7 #5A4FE5 #8C84ED #BEBAF5

Accessibility & contrast

On white

5.70
#5A4FE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#5A4FE5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4FE5
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4FE5#FFFFFF#000000##FFFFFF
##5A4FE51.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CEA
Deuteranopia (green-blind)
#0061E2
Tritanopia (blue-blind)
#007693
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #5a4fe5;
/* rgb */ color: rgb(90, 79, 229);
/* oklch */ color: oklch(53.2% 0.218 279.2);
Tailwind
colors: {
  custom: {
    50: '#9781ee',
    500: '#5a4fe5',
    950: '#000000',
  },
}
SCSS
$custom: #5a4fe5;
$custom-light: #9781ee;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4fe5",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 229
  },
  "hsl": {
    "h": 244.4,
    "s": 74.257,
    "l": 60.392
  },
  "oklch": {
    "l": 0.53175,
    "c": 0.21803,
    "h": 279.2
  },
  "luminance": 0.13423
}

Semantic roles & 50–950 ramp

primary
#5A4FE5
secondary
#E0E5AB
accent
#D60FC8
background
#FAF8FE
surface
#F3EFFD
border
#CDCAD5
text
#0F0A17
muted
#7F7C85

Preview Lab

Preview with #5A4FE5

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

Preview Lab → · Contrast checker → · Palette generator →

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