#5A4FD9#5A4FD9

#5A4FD9 is a mid, highly saturated blue. Relative luminance 0.128; OKLCH L 52.2% C 0.203 H 280.3°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#5A4FD9
RGBrgb(90, 79, 217)
HSLhsl(245, 64%, 58%)
HSVhsv(245, 64%, 85%)
CMYKcmyk(58.5%, 63.6%, 0%, 14.9%)
CIE-LABlab(42.42, 43.25, -69.44)
CIE-LCHlch(42.42, 81.81, 301.91°)
OKLaboklab(52.17% 0.0362 -0.1998)
OKLCHoklch(52.17% 0.203 280.3)
XYZxyz(19.5329, 12.7740, 67.0685)
Luminance0.1278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4FD9 #CED94F
analogous
#4F89D9 #5A4FD9 #9F4FD9
triadic
#5A4FD9 #D95A4F #4FD95A
tetradic
#5A4FD9 #D94F89 #CED94F #4FD99F
square
#5A4FD9 #D94F89 #CED94F #4FD99F
split-complementary
#5A4FD9 #D99F4F #89D94F
monochromatic
#281F8F #362AC1 #5A4FD9 #8981E4 #B8B4EF

Accessibility & contrast

On white

5.91
#5A4FD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#5A4FD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4FD9
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4FD9#FFFFFF#000000##FFFFFF
##5A4FD91.005.913.565.91
#FFFFFF5.911.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DD
Deuteranopia (green-blind)
#005FD6
Tritanopia (blue-blind)
#00728D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5a4fd9;
/* rgb */ color: rgb(90, 79, 217);
/* oklch */ color: oklch(52.2% 0.203 280.3);
Tailwind
colors: {
  custom: {
    50: '#9581e6',
    500: '#5a4fd9',
    950: '#000000',
  },
}
SCSS
$custom: #5a4fd9;
$custom-light: #9581e6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4fd9",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 217
  },
  "hsl": {
    "h": 244.783,
    "s": 64.486,
    "l": 58.039
  },
  "oklch": {
    "l": 0.5217,
    "c": 0.20306,
    "h": 280.3
  },
  "luminance": 0.12775
}

Semantic roles & 50–950 ramp

primary
#5A4FD9
secondary
#D9DDA6
accent
#E740DA
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5A4FD9

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

Preview Lab → · Contrast checker → · Palette generator →

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