#797997#797997

#797997 is a mid, muted blue. Relative luminance 0.200; OKLCH L 58.7% C 0.046 H 284.9°. Best body text is #000000 at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#797997
RGBrgb(121, 121, 151)
HSLhsl(240, 13%, 53%)
HSVhsv(240, 20%, 59%)
CMYKcmyk(19.9%, 19.9%, 0%, 40.8%)
CIE-LABlab(51.81, 6.64, -16.14)
CIE-LCHlch(51.81, 17.45, 292.35°)
OKLaboklab(58.7% 0.0117 -0.0441)
OKLCHoklch(58.7% 0.046 284.9)
XYZxyz(20.3071, 19.9738, 32.0576)
Luminance0.1997 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797997 #979779
analogous
#798897 #797997 #887997
triadic
#797997 #977979 #799779
tetradic
#797997 #977988 #979779 #799788
square
#797997 #977988 #979779 #799788
split-complementary
#797997 #978879 #889779
monochromatic
#414154 #5C5C77 #797997 #9B9BB2 #BEBECC

Accessibility & contrast

On white

4.20
#797997 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.99
#797997 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797997
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797997#FFFFFF#000000##000000
##7979971.004.204.994.99
#FFFFFF4.201.0021.0021.00
#0000004.9921.001.001.00
##0000004.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#727C98
Deuteranopia (green-blind)
#717B96
Tritanopia (blue-blind)
#737E83
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #797997;
/* rgb */ color: rgb(121, 121, 151);
/* oklch */ color: oklch(58.7% 0.046 284.9);
Tailwind
colors: {
  custom: {
    50: '#a09fb5',
    500: '#797997',
    950: '#000000',
  },
}
SCSS
$custom: #797997;
$custom-light: #a09fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#797997",
  "rgb": {
    "r": 121,
    "g": 121,
    "b": 151
  },
  "hsl": {
    "h": 240,
    "s": 12.605,
    "l": 53.333
  },
  "oklch": {
    "l": 0.58701,
    "c": 0.04562,
    "h": 284.9
  },
  "luminance": 0.19974
}

Semantic roles & 50–950 ramp

primary
#797997
secondary
#BCBCAF
accent
#B572B5
background
#F9F9FB
surface
#F2F2F6
border
#CCCCD0
text
#0E0E11
muted
#7E7E80

Preview Lab

Preview with #797997

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

Preview Lab → · Contrast checker → · Palette generator →

#797997 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva