#5A4CD7#5A4CD7

#5A4CD7 is a mid, highly saturated blue. Relative luminance 0.122; OKLCH L 51.5% C 0.204 H 281.0°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#5A4CD7
RGBrgb(90, 76, 215)
HSLhsl(246, 63%, 57%)
HSVhsv(246, 65%, 84%)
CMYKcmyk(58.1%, 64.7%, 0%, 15.7%)
CIE-LABlab(41.61, 44.37, -69.63)
CIE-LCHlch(41.61, 82.56, 302.51°)
OKLaboklab(51.53% 0.039 -0.2003)
OKLCHoklch(51.53% 0.204 281)
XYZxyz(19.0628, 12.2475, 65.6363)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4CD7 #C9D74C
analogous
#4C84D7 #5A4CD7 #9F4CD7
triadic
#5A4CD7 #D75A4C #4CD75A
tetradic
#5A4CD7 #D74C84 #C9D74C #4CD79F
square
#5A4CD7 #D74C84 #C9D74C #4CD79F
split-complementary
#5A4CD7 #D79F4C #84D74C
monochromatic
#2A1F8A #392ABC #5A4CD7 #887EE2 #B6B0ED

Accessibility & contrast

On white

6.09
#5A4CD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#5A4CD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4CD7
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4CD7#FFFFFF#000000##FFFFFF
##5A4CD71.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DB
Deuteranopia (green-blind)
#005DD4
Tritanopia (blue-blind)
#046F8B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a4cd7;
/* rgb */ color: rgb(90, 76, 215);
/* oklch */ color: oklch(51.5% 0.204 281.0);
Tailwind
colors: {
  custom: {
    50: '#957fe4',
    500: '#5a4cd7',
    950: '#000000',
  },
}
SCSS
$custom: #5a4cd7;
$custom-light: #957fe4;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4cd7",
  "rgb": {
    "r": 90,
    "g": 76,
    "b": 215
  },
  "hsl": {
    "h": 246.043,
    "s": 63.47,
    "l": 57.059
  },
  "oklch": {
    "l": 0.51528,
    "c": 0.20412,
    "h": 281
  },
  "luminance": 0.12249
}

Semantic roles & 50–950 ramp

primary
#5A4CD7
secondary
#D6DCA3
accent
#E641D6
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5A4CD7

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

Preview Lab → · Contrast checker → · Palette generator →

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