#5A5CC7#5A5CC7

#5A5CC7 is a mid, vivid blue. Relative luminance 0.140; OKLCH L 53.0% C 0.163 H 278.5°. Best body text is #FFFFFF at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#5A5CC7
RGBrgb(90, 92, 199)
HSLhsl(239, 49%, 57%)
HSVhsv(239, 55%, 78%)
CMYKcmyk(54.8%, 53.8%, 0%, 22%)
CIE-LABlab(44.16, 29.66, -56.27)
CIE-LCHlch(44.16, 63.61, 297.79°)
OKLaboklab(53.04% 0.024 -0.161)
OKLCHoklch(53.04% 0.163 278.5)
XYZxyz(18.3491, 13.9503, 55.7475)
Luminance0.1395 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A5CC7 #C7C55A
analogous
#5A93C7 #5A5CC7 #8F5AC7
triadic
#5A5CC7 #C75A5C #5CC75A
tetradic
#5A5CC7 #C75A93 #C7C55A #5AC78F
square
#5A5CC7 #C75A93 #C7C55A #5AC78F
split-complementary
#5A5CC7 #C78F5A #93C75A
monochromatic
#2A2C7C #3A3CAA #5A5CC7 #8889D7 #B5B6E6

Accessibility & contrast

On white

5.54
#5A5CC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#5A5CC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A5CC7
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A5CC7#FFFFFF#000000##FFFFFF
##5A5CC71.005.543.795.54
#FFFFFF5.541.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B6DCB
Deuteranopia (green-blind)
#0064C5
Tritanopia (blue-blind)
#247488
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #5a5cc7;
/* rgb */ color: rgb(90, 92, 199);
/* oklch */ color: oklch(53.0% 0.163 278.5);
Tailwind
colors: {
  custom: {
    50: '#918ad9',
    500: '#5a5cc7',
    950: '#000000',
  },
}
SCSS
$custom: #5a5cc7;
$custom-light: #918ad9;
$custom-dark: #000000;
JSON
{
  "hex": "#5a5cc7",
  "rgb": {
    "r": 90,
    "g": 92,
    "b": 199
  },
  "hsl": {
    "h": 238.899,
    "s": 49.321,
    "l": 56.667
  },
  "oklch": {
    "l": 0.53041,
    "c": 0.16277,
    "h": 278.5
  },
  "luminance": 0.13951
}

Semantic roles & 50–950 ramp

primary
#5A5CC7
secondary
#D5D4A8
accent
#D64FD9
background
#F9F8FD
surface
#F2F0FA
border
#CCCBD3
text
#0E0B15
muted
#7E7C83

Preview Lab

Preview with #5A5CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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