#5A4FD7#5A4FD7

#5A4FD7 is a mid, highly saturated blue. Relative luminance 0.127; OKLCH L 52.0% C 0.201 H 280.5°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#5A4FD7
RGBrgb(90, 79, 215)
HSLhsl(245, 63%, 58%)
HSVhsv(245, 63%, 84%)
CMYKcmyk(58.1%, 63.3%, 0%, 15.7%)
CIE-LABlab(42.26, 42.62, -68.56)
CIE-LCHlch(42.26, 80.73, 301.87°)
OKLaboklab(52.01% 0.0364 -0.1972)
OKLCHoklch(52.01% 0.201 280.5)
XYZxyz(19.2743, 12.6706, 65.7068)
Luminance0.1267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4FD7 #CCD74F
analogous
#4F88D7 #5A4FD7 #9E4FD7
triadic
#5A4FD7 #D75A4F #4FD75A
tetradic
#5A4FD7 #D74F88 #CCD74F #4FD79E
square
#5A4FD7 #D74F88 #CCD74F #4FD79E
split-complementary
#5A4FD7 #D79E4F #88D74F
monochromatic
#29208C #372BBE #5A4FD7 #8981E2 #B7B3EE

Accessibility & contrast

On white

5.94
#5A4FD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#5A4FD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4FD7
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4FD7#FFFFFF#000000##FFFFFF
##5A4FD71.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069DB
Deuteranopia (green-blind)
#005FD4
Tritanopia (blue-blind)
#03718C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #5a4fd7;
/* rgb */ color: rgb(90, 79, 215);
/* oklch */ color: oklch(52.0% 0.201 280.5);
Tailwind
colors: {
  custom: {
    50: '#9481e4',
    500: '#5a4fd7',
    950: '#000000',
  },
}
SCSS
$custom: #5a4fd7;
$custom-light: #9481e4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4fd7",
  "rgb": {
    "r": 90,
    "g": 79,
    "b": 215
  },
  "hsl": {
    "h": 244.853,
    "s": 62.963,
    "l": 57.647
  },
  "oklch": {
    "l": 0.52005,
    "c": 0.20053,
    "h": 280.5
  },
  "luminance": 0.12672
}

Semantic roles & 50–950 ramp

primary
#5A4FD7
secondary
#D8DCA6
accent
#E642D9
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5A4FD7

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

Preview Lab → · Contrast checker → · Palette generator →

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