#5A4CD8#5A4CD8

#5A4CD8 is a mid, highly saturated blue. Relative luminance 0.123; OKLCH L 51.6% C 0.205 H 280.9°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#5A4CD8
RGBrgb(90, 76, 216)
HSLhsl(246, 64%, 57%)
HSVhsv(246, 65%, 85%)
CMYKcmyk(58.3%, 64.8%, 0%, 15.3%)
CIE-LABlab(41.69, 44.68, -70.07)
CIE-LCHlch(41.69, 83.10, 302.52°)
OKLaboklab(51.61% 0.0389 -0.2016)
OKLCHoklch(51.61% 0.205 280.9)
XYZxyz(19.1917, 12.2991, 66.3151)
Luminance0.1230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4CD8 #CAD84C
analogous
#4C84D8 #5A4CD8 #A04CD8
triadic
#5A4CD8 #D85A4C #4CD85A
tetradic
#5A4CD8 #D84C84 #CAD84C #4CD8A0
square
#5A4CD8 #D84C84 #CAD84C #4CD8A0
split-complementary
#5A4CD8 #D8A04C #84D84C
monochromatic
#291E8B #3829BE #5A4CD8 #887EE3 #B7B1EE

Accessibility & contrast

On white

6.07
#5A4CD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#5A4CD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4CD8
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4CD8#FFFFFF#000000##FFFFFF
##5A4CD81.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067DC
Deuteranopia (green-blind)
#005DD5
Tritanopia (blue-blind)
#00708B
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a4cd8;
/* rgb */ color: rgb(90, 76, 216);
/* oklch */ color: oklch(51.6% 0.205 280.9);
Tailwind
colors: {
  custom: {
    50: '#957fe5',
    500: '#5a4cd8',
    950: '#000000',
  },
}
SCSS
$custom: #5a4cd8;
$custom-light: #957fe5;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4cd8",
  "rgb": {
    "r": 90,
    "g": 76,
    "b": 216
  },
  "hsl": {
    "h": 246,
    "s": 64.22,
    "l": 57.255
  },
  "oklch": {
    "l": 0.51612,
    "c": 0.20536,
    "h": 280.9
  },
  "luminance": 0.123
}

Semantic roles & 50–950 ramp

primary
#5A4CD8
secondary
#D7DCA4
accent
#E741D7
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5A4CD8

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

Preview Lab → · Contrast checker → · Palette generator →

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