#797FA4#797FA4

#797FA4 is a mid, muted blue. Relative luminance 0.219; OKLCH L 60.5% C 0.057 H 277.4°. Best body text is #000000 at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#797FA4
RGBrgb(121, 127, 164)
HSLhsl(232, 19%, 56%)
HSVhsv(232, 26%, 64%)
CMYKcmyk(26.2%, 22.6%, 0%, 35.7%)
CIE-LABlab(53.95, 6.31, -20.44)
CIE-LCHlch(53.95, 21.39, 287.16°)
OKLaboklab(60.53% 0.0073 -0.0562)
OKLCHoklch(60.53% 0.057 277.4)
XYZxyz(22.1736, 21.9235, 38.1782)
Luminance0.2192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FA4 #A49E79
analogous
#7994A4 #797FA4 #8879A4
triadic
#797FA4 #A4797F #7FA479
tetradic
#797FA4 #A47994 #A49E79 #79A488
square
#797FA4 #A47994 #A49E79 #79A488
split-complementary
#797FA4 #A48879 #94A479
monochromatic
#424661 #5B6085 #797FA4 #9DA2BD #C2C5D6

Accessibility & contrast

On white

3.90
#797FA4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.38
#797FA4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FA4
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FA4#FFFFFF#000000##000000
##797FA41.003.905.385.38
#FFFFFF3.901.0021.0021.00
#0000005.3821.001.001.00
##0000005.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#7583A6
Deuteranopia (green-blind)
#727FA3
Tritanopia (blue-blind)
#6E868C
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797fa4;
/* rgb */ color: rgb(121, 127, 164);
/* oklch */ color: oklch(60.5% 0.057 277.4);
Tailwind
colors: {
  custom: {
    50: '#a0a4bf',
    500: '#797fa4',
    950: '#000000',
  },
}
SCSS
$custom: #797fa4;
$custom-light: #a0a4bf;
$custom-dark: #000000;
JSON
{
  "hex": "#797fa4",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 164
  },
  "hsl": {
    "h": 231.628,
    "s": 19.111,
    "l": 55.882
  },
  "oklch": {
    "l": 0.60527,
    "c": 0.05666,
    "h": 277.4
  },
  "luminance": 0.21924
}

Semantic roles & 50–950 ramp

primary
#797FA4
secondary
#C5C3B3
accent
#B16CBC
background
#F9FAFB
surface
#F2F3F7
border
#CCCDD0
text
#0F0F12
muted
#7E7F81

Preview Lab

Preview with #797FA4

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

Preview Lab → · Contrast checker → · Palette generator →

#797FA4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva