#798A8A#798A8A

#798A8A is a mid, near-neutral grey. Relative luminance 0.241; OKLCH L 62.0% C 0.020 H 196.7°. Best body text is #000000 at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#798A8A
RGBrgb(121, 138, 138)
HSLhsl(180, 7%, 51%)
HSVhsv(180, 12%, 54%)
CMYKcmyk(12.3%, 0%, 0%, 45.9%)
CIE-LABlab(56.16, -6.12, -2.08)
CIE-LCHlch(56.16, 6.46, 198.77°)
OKLaboklab(61.98% -0.0189 -0.0056)
OKLCHoklch(61.98% 0.02 196.7)
XYZxyz(21.5600, 24.0764, 27.5511)
Luminance0.2408 (WCAG relative)
Temperatureneutral
Familygrey

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798A8A #8A7979
analogous
#798A81 #798A8A #79818A
triadic
#798A8A #8A798A #8A8A79
tetradic
#798A8A #81798A #8A7979 #818A79
square
#798A8A #81798A #8A7979 #818A79
split-complementary
#798A8A #8A7981 #8A8179
monochromatic
#404949 #5C6A6A #798A8A #9AA7A7 #BAC3C3

Accessibility & contrast

On white

3.61
#798A8A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.82
#798A8A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798A8A
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798A8A#FFFFFF#000000##000000
##798A8A1.003.615.825.82
#FFFFFF3.611.0021.0021.00
#0000005.8221.001.001.00
##0000005.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#88888A
Deuteranopia (green-blind)
#84868A
Tritanopia (blue-blind)
#748B8A
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #798a8a;
/* rgb */ color: rgb(121, 138, 138);
/* oklch */ color: oklch(62.0% 0.020 196.7);
Tailwind
colors: {
  custom: {
    50: '#9facac',
    500: '#798a8a',
    950: '#000000',
  },
}
SCSS
$custom: #798a8a;
$custom-light: #9facac;
$custom-dark: #000000;
JSON
{
  "hex": "#798a8a",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 138
  },
  "hsl": {
    "h": 180,
    "s": 6.773,
    "l": 50.784
  },
  "oklch": {
    "l": 0.61979,
    "c": 0.01971,
    "h": 196.7
  },
  "luminance": 0.24077
}

Semantic roles & 50–950 ramp

primary
#798A8A
secondary
#B3ACAC
accent
#7878B0
background
#F9FAFA
surface
#F2F4F4
border
#CCCECE
text
#0E1010
muted
#7E7F7F

Preview Lab

Preview with #798A8A

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

Preview Lab → · Contrast checker → · Palette generator →

#798A8A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva