#5A4CDC#5A4CDC

#5A4CDC is a mid, highly saturated blue. Relative luminance 0.125; OKLCH L 51.9% C 0.210 H 280.5°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#5A4CDC
RGBrgb(90, 76, 220)
HSLhsl(246, 67%, 58%)
HSVhsv(246, 65%, 86%)
CMYKcmyk(59.1%, 65.5%, 0%, 13.7%)
CIE-LABlab(42.01, 45.92, -71.82)
CIE-LCHlch(42.01, 85.25, 302.59°)
OKLaboklab(51.95% 0.0385 -0.2068)
OKLCHoklch(51.95% 0.21 280.5)
XYZxyz(19.7151, 12.5085, 69.0717)
Luminance0.1251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4CDC #CEDC4C
analogous
#4C86DC #5A4CDC #A24CDC
triadic
#5A4CDC #DC5A4C #4CDC5A
tetradic
#5A4CDC #DC4C86 #CEDC4C #4CDCA2
square
#5A4CDC #DC4C86 #CEDC4C #4CDCA2
split-complementary
#5A4CDC #DCA24C #86DC4C
monochromatic
#281C91 #3626C4 #5A4CDC #897FE6 #B8B2F0

Accessibility & contrast

On white

6.00
#5A4CDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#5A4CDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4CDC
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4CDC#FFFFFF#000000##FFFFFF
##5A4CDC1.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E0
Deuteranopia (green-blind)
#005ED9
Tritanopia (blue-blind)
#00718D
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #5a4cdc;
/* rgb */ color: rgb(90, 76, 220);
/* oklch */ color: oklch(51.9% 0.210 280.5);
Tailwind
colors: {
  custom: {
    50: '#967fe8',
    500: '#5a4cdc',
    950: '#000000',
  },
}
SCSS
$custom: #5a4cdc;
$custom-light: #967fe8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4cdc",
  "rgb": {
    "r": 90,
    "g": 76,
    "b": 220
  },
  "hsl": {
    "h": 245.833,
    "s": 67.29,
    "l": 58.039
  },
  "oklch": {
    "l": 0.51949,
    "c": 0.21034,
    "h": 280.5
  },
  "luminance": 0.1251
}

Semantic roles & 50–950 ramp

primary
#5A4CDC
secondary
#D9DFA5
accent
#EA3ED9
background
#F9F7FE
surface
#F2EEFD
border
#CCC9D5
text
#0F0A16
muted
#7E7C84

Preview Lab

Preview with #5A4CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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