#5A4CD9#5A4CD9

#5A4CD9 is a mid, highly saturated blue. Relative luminance 0.124; OKLCH L 51.7% C 0.207 H 280.8°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#5A4CD9
RGBrgb(90, 76, 217)
HSLhsl(246, 65%, 57%)
HSVhsv(246, 65%, 85%)
CMYKcmyk(58.5%, 65%, 0%, 14.9%)
CIE-LABlab(41.77, 44.99, -70.51)
CIE-LCHlch(41.77, 83.64, 302.54°)
OKLaboklab(51.7% 0.0388 -0.2029)
OKLCHoklch(51.7% 0.207 280.8)
XYZxyz(19.3213, 12.3510, 66.9980)
Luminance0.1235 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4CD9 #CBD94C
analogous
#4C85D9 #5A4CD9 #A04CD9
triadic
#5A4CD9 #D95A4C #4CD95A
tetradic
#5A4CD9 #D94C85 #CBD94C #4CD9A0
square
#5A4CD9 #D94C85 #CBD94C #4CD9A0
split-complementary
#5A4CD9 #D9A04C #85D94C
monochromatic
#291E8D #3829BF #5A4CD9 #897EE4 #B7B1EE

Accessibility & contrast

On white

6.05
#5A4CD9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#5A4CD9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4CD9
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4CD9#FFFFFF#000000##FFFFFF
##5A4CD91.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068DD
Deuteranopia (green-blind)
#005DD6
Tritanopia (blue-blind)
#00708C
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5a4cd9;
/* rgb */ color: rgb(90, 76, 217);
/* oklch */ color: oklch(51.7% 0.207 280.8);
Tailwind
colors: {
  custom: {
    50: '#957fe6',
    500: '#5a4cd9',
    950: '#000000',
  },
}
SCSS
$custom: #5a4cd9;
$custom-light: #957fe6;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4cd9",
  "rgb": {
    "r": 90,
    "g": 76,
    "b": 217
  },
  "hsl": {
    "h": 245.957,
    "s": 64.977,
    "l": 57.451
  },
  "oklch": {
    "l": 0.51696,
    "c": 0.20661,
    "h": 280.8
  },
  "luminance": 0.12352
}

Semantic roles & 50–950 ramp

primary
#5A4CD9
secondary
#D7DDA4
accent
#E840D7
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5A4CD9

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

Preview Lab → · Contrast checker → · Palette generator →

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