#797FA5#797FA5

#797FA5 is a mid, muted blue. Relative luminance 0.220; OKLCH L 60.6% C 0.058 H 277.5°. Best body text is #000000 at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#797FA5
RGBrgb(121, 127, 165)
HSLhsl(232, 20%, 56%)
HSVhsv(232, 27%, 65%)
CMYKcmyk(26.7%, 23%, 0%, 35.3%)
CIE-LABlab(53.98, 6.56, -20.95)
CIE-LCHlch(53.98, 21.96, 287.39°)
OKLaboklab(60.57% 0.0076 -0.0577)
OKLCHoklch(60.57% 0.058 277.5)
XYZxyz(22.2643, 21.9597, 38.6556)
Luminance0.2196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797FA5 #A59F79
analogous
#7995A5 #797FA5 #8979A5
triadic
#797FA5 #A5797F #7FA579
tetradic
#797FA5 #A57995 #A59F79 #79A589
square
#797FA5 #A57995 #A59F79 #79A589
split-complementary
#797FA5 #A58979 #95A579
monochromatic
#424662 #5A6086 #797FA5 #9EA2BE #C2C5D6

Accessibility & contrast

On white

3.89
#797FA5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.39
#797FA5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797FA5
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797FA5#FFFFFF#000000##000000
##797FA51.003.895.395.39
#FFFFFF3.891.0021.0021.00
#0000005.3921.001.001.00
##0000005.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7483A7
Deuteranopia (green-blind)
#7280A4
Tritanopia (blue-blind)
#6E868C
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #797fa5;
/* rgb */ color: rgb(121, 127, 165);
/* oklch */ color: oklch(60.6% 0.058 277.5);
Tailwind
colors: {
  custom: {
    50: '#a0a4bf',
    500: '#797fa5',
    950: '#000000',
  },
}
SCSS
$custom: #797fa5;
$custom-light: #a0a4bf;
$custom-dark: #000000;
JSON
{
  "hex": "#797fa5",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 165
  },
  "hsl": {
    "h": 231.818,
    "s": 19.643,
    "l": 56.078
  },
  "oklch": {
    "l": 0.6057,
    "c": 0.05816,
    "h": 277.5
  },
  "luminance": 0.2196
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #797FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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