#5A4CD5#5A4CD5

#5A4CD5 is a mid, highly saturated blue. Relative luminance 0.121; OKLCH L 51.4% C 0.202 H 281.2°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#5A4CD5
RGBrgb(90, 76, 213)
HSLhsl(246, 62%, 57%)
HSVhsv(246, 64%, 84%)
CMYKcmyk(57.7%, 64.3%, 0%, 16.5%)
CIE-LABlab(41.45, 43.75, -68.74)
CIE-LCHlch(41.45, 81.48, 302.47°)
OKLaboklab(51.36% 0.0392 -0.1977)
OKLCHoklch(51.36% 0.202 281.2)
XYZxyz(18.8074, 12.1454, 64.2911)
Luminance0.1215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4CD5 #C7D54C
analogous
#4C83D5 #5A4CD5 #9E4CD5
triadic
#5A4CD5 #D55A4C #4CD55A
tetradic
#5A4CD5 #D54C83 #C7D54C #4CD59E
square
#5A4CD5 #D54C83 #C7D54C #4CD59E
split-complementary
#5A4CD5 #D59E4C #83D54C
monochromatic
#2A2087 #3A2BB9 #5A4CD5 #887EE1 #B5AFEC

Accessibility & contrast

On white

6.12
#5A4CD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#5A4CD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4CD5
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4CD5#FFFFFF#000000##FFFFFF
##5A4CD51.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067D9
Deuteranopia (green-blind)
#005DD2
Tritanopia (blue-blind)
#0D6F8A
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #5a4cd5;
/* rgb */ color: rgb(90, 76, 213);
/* oklch */ color: oklch(51.4% 0.202 281.2);
Tailwind
colors: {
  custom: {
    50: '#947fe3',
    500: '#5a4cd5',
    950: '#000000',
  },
}
SCSS
$custom: #5a4cd5;
$custom-light: #947fe3;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4cd5",
  "rgb": {
    "r": 90,
    "g": 76,
    "b": 213
  },
  "hsl": {
    "h": 246.131,
    "s": 61.991,
    "l": 56.667
  },
  "oklch": {
    "l": 0.51362,
    "c": 0.2016,
    "h": 281.2
  },
  "luminance": 0.12147
}

Semantic roles & 50–950 ramp

primary
#5A4CD5
secondary
#D5DAA2
accent
#E543D4
background
#F9F7FE
surface
#F2EEFC
border
#CCC9D5
text
#0E0A16
muted
#7E7C84

Preview Lab

Preview with #5A4CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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