#5A6BC7#5A6BC7

#5A6BC7 is a mid, vivid blue. Relative luminance 0.168; OKLCH L 56.0% C 0.143 H 273.1°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#5A6BC7
RGBrgb(90, 107, 199)
HSLhsl(231, 49%, 57%)
HSVhsv(231, 55%, 78%)
CMYKcmyk(54.8%, 46.2%, 0%, 22%)
CIE-LABlab(48.02, 20.34, -50.07)
CIE-LCHlch(48.02, 54.05, 292.11°)
OKLaboklab(55.95% 0.0077 -0.1426)
OKLCHoklch(55.95% 0.143 273.1)
XYZxyz(19.7796, 16.8112, 56.2243)
Luminance0.1681 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A6BC7 #C7B65A
analogous
#5AA2C7 #5A6BC7 #805AC7
triadic
#5A6BC7 #C75A6B #6BC75A
tetradic
#5A6BC7 #C75AA2 #C7B65A #5AC780
square
#5A6BC7 #C75AA2 #C7B65A #5AC780
split-complementary
#5A6BC7 #C7805A #A2C75A
monochromatic
#2A377C #3A4BAA #5A6BC7 #8894D7 #B5BDE6

Accessibility & contrast

On white

4.81
#5A6BC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#5A6BC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A6BC7
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A6BC7#FFFFFF#000000##FFFFFF
##5A6BC71.004.814.364.81
#FFFFFF4.811.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4177CA
Deuteranopia (green-blind)
#346EC5
Tritanopia (blue-blind)
#217F8F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #5a6bc7;
/* rgb */ color: rgb(90, 107, 199);
/* oklch */ color: oklch(56.0% 0.143 273.1);
Tailwind
colors: {
  custom: {
    50: '#9095d8',
    500: '#5a6bc7',
    950: '#000000',
  },
}
SCSS
$custom: #5a6bc7;
$custom-light: #9095d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5a6bc7",
  "rgb": {
    "r": 90,
    "g": 107,
    "b": 199
  },
  "hsl": {
    "h": 230.642,
    "s": 49.321,
    "l": 56.667
  },
  "oklch": {
    "l": 0.55953,
    "c": 0.14284,
    "h": 273.1
  },
  "luminance": 0.16813
}

Semantic roles & 50–950 ramp

primary
#5A6BC7
secondary
#D5CEA8
accent
#C34FD9
background
#F9F9FD
surface
#F2F1FA
border
#CCCBD3
text
#0D0D14
muted
#7E7E83

Preview Lab

Preview with #5A6BC7

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

Preview Lab → · Contrast checker → · Palette generator →

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