#5A5CC8#5A5CC8

#5A5CC8 is a mid, vivid blue. Relative luminance 0.140; OKLCH L 53.1% C 0.164 H 278.4°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#5A5CC8
RGBrgb(90, 92, 200)
HSLhsl(239, 50%, 57%)
HSVhsv(239, 55%, 78%)
CMYKcmyk(55%, 54%, 0%, 21.6%)
CIE-LABlab(44.23, 29.98, -56.74)
CIE-LCHlch(44.23, 64.18, 297.85°)
OKLaboklab(53.11% 0.0241 -0.1624)
OKLCHoklch(53.11% 0.164 278.4)
XYZxyz(18.4656, 13.9969, 56.3610)
Luminance0.1400 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5CC8 #C8C65A
analogous
#5A93C8 #5A5CC8 #8F5AC8
triadic
#5A5CC8 #C85A5C #5CC85A
tetradic
#5A5CC8 #C85A93 #C8C65A #5AC88F
square
#5A5CC8 #C85A93 #C8C65A #5AC88F
split-complementary
#5A5CC8 #C88F5A #93C85A
monochromatic
#2A2B7E #393BAC #5A5CC8 #8889D7 #B6B7E7

Accessibility & contrast

On white

5.53
#5A5CC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#5A5CC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5CC8
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5CC8#FFFFFF#000000##FFFFFF
##5A5CC81.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#196DCC
Deuteranopia (green-blind)
#0064C6
Tritanopia (blue-blind)
#237589
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #5a5cc8;
/* rgb */ color: rgb(90, 92, 200);
/* oklch */ color: oklch(53.1% 0.164 278.4);
Tailwind
colors: {
  custom: {
    50: '#918ad9',
    500: '#5a5cc8',
    950: '#000000',
  },
}
SCSS
$custom: #5a5cc8;
$custom-light: #918ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5cc8",
  "rgb": {
    "r": 90,
    "g": 92,
    "b": 200
  },
  "hsl": {
    "h": 238.909,
    "s": 50,
    "l": 56.863
  },
  "oklch": {
    "l": 0.53112,
    "c": 0.16414,
    "h": 278.4
  },
  "luminance": 0.13998
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5A5CC8

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

Preview Lab → · Contrast checker → · Palette generator →

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