#5A4FD2#5A4FD2

#5A4FD2 is a mid, vivid blue. Relative luminance 0.124; OKLCH L 51.6% C 0.194 H 280.9°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#5A4FD2
RGBrgb(90, 79, 210)
HSLhsl(245, 59%, 57%)
HSVhsv(245, 62%, 82%)
CMYKcmyk(57.1%, 62.4%, 0%, 17.6%)
CIE-LABlab(41.87, 41.06, -66.32)
CIE-LCHlch(41.87, 78.00, 301.76°)
OKLaboklab(51.6% 0.0368 -0.1906)
OKLCHoklch(51.6% 0.194 280.9)
XYZxyz(18.6417, 12.4175, 62.3748)
Luminance0.1242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4FD2 #C7D24F
analogous
#4F86D2 #5A4FD2 #9C4FD2
triadic
#5A4FD2 #D25A4F #4FD25A
tetradic
#5A4FD2 #D24F86 #C7D24F #4FD29C
square
#5A4FD2 #D24F86 #C7D24F #4FD29C
split-complementary
#5A4FD2 #D29C4F #86D24F
monochromatic
#2A2285 #3A2EB5 #5A4FD2 #8880DE #B5B0EB

Accessibility & contrast

On white

6.03
#5A4FD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#5A4FD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4FD2
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4FD2#FFFFFF#000000##FFFFFF
##5A4FD21.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068D6
Deuteranopia (green-blind)
#005ECF
Tritanopia (blue-blind)
#146F89
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5a4fd2;
/* rgb */ color: rgb(90, 79, 210);
/* oklch */ color: oklch(51.6% 0.194 280.9);
Tailwind
colors: {
  custom: {
    50: '#9481e1',
    500: '#5a4fd2',
    950: '#000000',
  },
}
SCSS
$custom: #5a4fd2;
$custom-light: #9481e1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4fd2",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 210
  },
  "hsl": {
    "h": 245.038,
    "s": 59.276,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51598,
    "c": 0.19416,
    "h": 280.9
  },
  "luminance": 0.12419
}

Semantic roles & 50–950 ramp

primary
#5A4FD2
secondary
#D5D9A4
accent
#E245D5
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4FD2

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

Preview Lab → · Contrast checker → · Palette generator →

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