#5A5CD4#5A5CD4

#5A5CD4 is a mid, vivid blue. Relative luminance 0.146; OKLCH L 54.0% C 0.180 H 277.8°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#5A5CD4
RGBrgb(90, 92, 212)
HSLhsl(239, 59%, 59%)
HSVhsv(239, 58%, 83%)
CMYKcmyk(57.5%, 56.6%, 0%, 16.9%)
CIE-LABlab(45.05, 33.85, -62.30)
CIE-LCHlch(45.05, 70.91, 298.52°)
OKLaboklab(53.99% 0.0244 -0.1787)
OKLCHoklch(53.99% 0.18 277.8)
XYZxyz(19.9235, 14.5800, 64.0389)
Luminance0.1458 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5CD4 #D4D25A
analogous
#5A99D4 #5A5CD4 #955AD4
triadic
#5A5CD4 #D45A5C #5CD45A
tetradic
#5A5CD4 #D45A99 #D4D25A #5AD495
square
#5A5CD4 #D45A99 #D4D25A #5AD495
split-complementary
#5A5CD4 #D4955A #99D45A
monochromatic
#25278E #3234BF #5A5CD4 #8B8CE1 #BBBCED

Accessibility & contrast

On white

5.36
#5A5CD4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#5A5CD4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5CD4
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5CD4#FFFFFF#000000##FFFFFF
##5A5CD41.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070D8
Deuteranopia (green-blind)
#0066D2
Tritanopia (blue-blind)
#08788F
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #5a5cd4;
/* rgb */ color: rgb(90, 92, 212);
/* oklch */ color: oklch(54.0% 0.180 277.8);
Tailwind
colors: {
  custom: {
    50: '#938ae2',
    500: '#5a5cd4',
    950: '#000000',
  },
}
SCSS
$custom: #5a5cd4;
$custom-light: #938ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5cd4",
  "rgb": {
    "r": 90,
    "g": 92,
    "b": 212
  },
  "hsl": {
    "h": 239.016,
    "s": 58.654,
    "l": 59.216
  },
  "oklch": {
    "l": 0.53989,
    "c": 0.18039,
    "h": 277.8
  },
  "luminance": 0.14581
}

Semantic roles & 50–950 ramp

primary
#5A5CD4
secondary
#DDDCAD
accent
#DF46E2
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5A5CD4

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

Preview Lab → · Contrast checker → · Palette generator →

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