#5A5DC7#5A5DC7

#5A5DC7 is a mid, vivid blue. Relative luminance 0.141; OKLCH L 53.2% C 0.161 H 278.2°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#5A5DC7
RGBrgb(90, 93, 199)
HSLhsl(238, 49%, 57%)
HSVhsv(238, 55%, 78%)
CMYKcmyk(54.8%, 53.3%, 0%, 22%)
CIE-LABlab(44.41, 29.04, -55.87)
CIE-LCHlch(44.41, 62.97, 297.46°)
OKLaboklab(53.23% 0.023 -0.1598)
OKLCHoklch(53.23% 0.161 278.2)
XYZxyz(18.4363, 14.1247, 55.7766)
Luminance0.1413 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5DC7 #C7C45A
analogous
#5A94C7 #5A5DC7 #8E5AC7
triadic
#5A5DC7 #C75A5D #5DC75A
tetradic
#5A5DC7 #C75A94 #C7C45A #5AC78E
square
#5A5DC7 #C75A94 #C7C45A #5AC78E
split-complementary
#5A5DC7 #C78E5A #94C75A
monochromatic
#2A2C7C #3A3DAA #5A5DC7 #888AD7 #B5B7E6

Accessibility & contrast

On white

5.49
#5A5DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#5A5DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5DC7
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5DC7#FFFFFF#000000##FFFFFF
##5A5DC71.005.493.835.49
#FFFFFF5.491.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F6ECB
Deuteranopia (green-blind)
#0565C5
Tritanopia (blue-blind)
#247589
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5a5dc7;
/* rgb */ color: rgb(90, 93, 199);
/* oklch */ color: oklch(53.2% 0.161 278.2);
Tailwind
colors: {
  custom: {
    50: '#918bd9',
    500: '#5a5dc7',
    950: '#000000',
  },
}
SCSS
$custom: #5a5dc7;
$custom-light: #918bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5dc7",
  "rgb": {
    "r": 90,
    "g": 93,
    "b": 199
  },
  "hsl": {
    "h": 238.349,
    "s": 49.321,
    "l": 56.667
  },
  "oklch": {
    "l": 0.53227,
    "c": 0.16144,
    "h": 278.2
  },
  "luminance": 0.14126
}

Semantic roles & 50–950 ramp

primary
#5A5DC7
secondary
#D5D3A8
accent
#D54FD9
background
#F9F8FD
surface
#F2F0FA
border
#CCCBD3
text
#0E0C15
muted
#7E7D83

Preview Lab

Preview with #5A5DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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