#5A4CD3#5A4CD3

#5A4CD3 is a mid, vivid blue. Relative luminance 0.120; OKLCH L 51.2% C 0.199 H 281.4°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#5A4CD3
RGBrgb(90, 76, 211)
HSLhsl(246, 61%, 56%)
HSVhsv(246, 64%, 83%)
CMYKcmyk(57.3%, 64%, 0%, 17.3%)
CIE-LABlab(41.29, 43.13, -67.85)
CIE-LCHlch(41.29, 80.40, 302.44°)
OKLaboklab(51.2% 0.0394 -0.1951)
OKLCHoklch(51.2% 0.199 281.4)
XYZxyz(18.5551, 12.0445, 62.9624)
Luminance0.1205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A4CD3 #C5D34C
analogous
#4C82D3 #5A4CD3 #9E4CD3
triadic
#5A4CD3 #D35A4C #4CD35A
tetradic
#5A4CD3 #D34C82 #C5D34C #4CD39E
square
#5A4CD3 #D34C82 #C5D34C #4CD39E
split-complementary
#5A4CD3 #D39E4C #82D34C
monochromatic
#2B2084 #3B2DB5 #5A4CD3 #877DDF #B5AEEB

Accessibility & contrast

On white

6.16
#5A4CD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#5A4CD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A4CD3
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A4CD3#FFFFFF#000000##FFFFFF
##5A4CD31.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D7
Deuteranopia (green-blind)
#005CD0
Tritanopia (blue-blind)
#136E89
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #5a4cd3;
/* rgb */ color: rgb(90, 76, 211);
/* oklch */ color: oklch(51.2% 0.199 281.4);
Tailwind
colors: {
  custom: {
    50: '#947fe1',
    500: '#5a4cd3',
    950: '#000000',
  },
}
SCSS
$custom: #5a4cd3;
$custom-light: #947fe1;
$custom-dark: #000000;
JSON
{
  "hex": "#5a4cd3",
  "rgb": {
    "r": 90,
    "g": 76,
    "b": 211
  },
  "hsl": {
    "h": 246.222,
    "s": 60.538,
    "l": 56.275
  },
  "oklch": {
    "l": 0.51196,
    "c": 0.19908,
    "h": 281.4
  },
  "luminance": 0.12046
}

Semantic roles & 50–950 ramp

primary
#5A4CD3
secondary
#D3D9A2
accent
#E444D3
background
#F9F7FD
surface
#F2EEFB
border
#CCC9D4
text
#0E0A15
muted
#7E7C83

Preview Lab

Preview with #5A4CD3

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

Preview Lab → · Contrast checker → · Palette generator →

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