#5A5BC8#5A5BC8

#5A5BC8 is a mid, vivid blue. Relative luminance 0.138; OKLCH L 52.9% C 0.165 H 278.7°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#5A5BC8
RGBrgb(90, 91, 200)
HSLhsl(239, 50%, 57%)
HSVhsv(239, 55%, 78%)
CMYKcmyk(55%, 54.5%, 0%, 21.6%)
CIE-LABlab(43.98, 30.60, -57.14)
CIE-LCHlch(43.98, 64.82, 298.17°)
OKLaboklab(52.93% 0.0251 -0.1636)
OKLCHoklch(52.93% 0.165 278.7)
XYZxyz(18.3796, 13.8248, 56.3323)
Luminance0.1383 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5BC8 #C8C75A
analogous
#5A92C8 #5A5BC8 #905AC8
triadic
#5A5BC8 #C85A5B #5BC85A
tetradic
#5A5BC8 #C85A92 #C8C75A #5AC890
square
#5A5BC8 #C85A92 #C8C75A #5AC890
split-complementary
#5A5BC8 #C8905A #92C85A
monochromatic
#2A2B7E #393AAC #5A5BC8 #8889D7 #B6B6E7

Accessibility & contrast

On white

5.58
#5A5BC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#5A5BC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5BC8
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5BC8#FFFFFF#000000##FFFFFF
##5A5BC81.005.583.775.58
#FFFFFF5.581.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#156CCC
Deuteranopia (green-blind)
#0064C6
Tritanopia (blue-blind)
#237489
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5a5bc8;
/* rgb */ color: rgb(90, 91, 200);
/* oklch */ color: oklch(52.9% 0.165 278.7);
Tailwind
colors: {
  custom: {
    50: '#9189d9',
    500: '#5a5bc8',
    950: '#000000',
  },
}
SCSS
$custom: #5a5bc8;
$custom-light: #9189d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5bc8",
  "rgb": {
    "r": 90,
    "g": 91,
    "b": 200
  },
  "hsl": {
    "h": 239.455,
    "s": 50,
    "l": 56.863
  },
  "oklch": {
    "l": 0.52927,
    "c": 0.16548,
    "h": 278.7
  },
  "luminance": 0.13826
}

Semantic roles & 50–950 ramp

primary
#5A5BC8
secondary
#D5D5A8
accent
#D84EDA
background
#F9F8FD
surface
#F2F0FB
border
#CCCBD4
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5A5BC8

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

Preview Lab → · Contrast checker → · Palette generator →

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