#5A668B#5A668B

#5A668B is a mid, moderate blue. Relative luminance 0.135; OKLCH L 51.5% C 0.061 H 270.3°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#5A668B
RGBrgb(90, 102, 139)
HSLhsl(225, 21%, 45%)
HSVhsv(225, 35%, 55%)
CMYKcmyk(35.3%, 26.6%, 0%, 45.5%)
CIE-LABlab(43.57, 4.94, -21.88)
CIE-LCHlch(43.57, 22.43, 282.72°)
OKLaboklab(51.52% 0.0003 -0.0607)
OKLCHoklch(51.52% 0.061 270.3)
XYZxyz(13.6267, 13.5399, 26.3166)
Luminance0.1354 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5A668B #8B7F5A
analogous
#5A7E8B #5A668B #675A8B
triadic
#5A668B #8B5A66 #668B5A
tetradic
#5A668B #8B5A7E #8B7F5A #5A8B67
square
#5A668B #8B5A7E #8B7F5A #5A8B67
split-complementary
#5A668B #8B675A #7E8B5A
monochromatic
#2A2F41 #424B66 #5A668B #7A85A9 #9FA7C1

Accessibility & contrast

On white

5.66
#5A668B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#5A668B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5A668B
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5A668B#FFFFFF#000000##FFFFFF
##5A668B1.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A698D
Deuteranopia (green-blind)
#56658A
Tritanopia (blue-blind)
#4C6D73
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #5a668b;
/* rgb */ color: rgb(90, 102, 139);
/* oklch */ color: oklch(51.5% 0.061 270.3);
Tailwind
colors: {
  custom: {
    50: '#8a91ad',
    500: '#5a668b',
    950: '#000000',
  },
}
SCSS
$custom: #5a668b;
$custom-light: #8a91ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5a668b",
  "rgb": {
    "r": 90,
    "g": 102,
    "b": 139
  },
  "hsl": {
    "h": 225.306,
    "s": 21.397,
    "l": 44.902
  },
  "oklch": {
    "l": 0.51521,
    "c": 0.06068,
    "h": 270.3
  },
  "luminance": 0.1354
}

Semantic roles & 50–950 ramp

primary
#5A668B
secondary
#AFA892
accent
#A96ABE
background
#F8F8FA
surface
#F0F0F4
border
#CBCBCE
text
#0C0C10
muted
#7D7D7F

Preview Lab

Preview with #5A668B

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

Preview Lab → · Contrast checker → · Palette generator →

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