#797B4E#797B4E

#797B4E is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 57.0% C 0.064 H 110.4°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#797B4E
RGBrgb(121, 123, 78)
HSLhsl(63, 22%, 39%)
HSVhsv(63, 37%, 48%)
CMYKcmyk(1.6%, 0%, 36.6%, 51.8%)
CIE-LABlab(50.43, -8.30, 24.39)
CIE-LCHlch(50.43, 25.76, 108.79°)
OKLaboklab(56.98% -0.0224 0.0601)
OKLCHoklch(56.98% 0.064 110.4)
XYZxyz(16.3434, 18.7812, 9.9704)
Luminance0.1878 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B4E #504E7B
analogous
#7B674E #797B4E #637B4E
triadic
#797B4E #4E797B #7B4E79
tetradic
#797B4E #4E7B67 #504E7B #7B4E63
square
#797B4E #4E7B67 #504E7B #7B4E63
split-complementary
#797B4E #4E637B #674E7B
monochromatic
#2F301F #545636 #797B4E #9C9F67 #B5B78D

Accessibility & contrast

On white

4.42
#797B4E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#797B4E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B4E
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B4E#FFFFFF#000000##000000
##797B4E1.004.424.764.76
#FFFFFF4.421.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#82774B
Deuteranopia (green-blind)
#827950
Tritanopia (blue-blind)
#7F7670
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797b4e;
/* rgb */ color: rgb(121, 123, 78);
/* oklch */ color: oklch(57.0% 0.064 110.4);
Tailwind
colors: {
  custom: {
    50: '#a0a180',
    500: '#797b4e',
    950: '#000000',
  },
}
SCSS
$custom: #797b4e;
$custom-light: #a0a180;
$custom-dark: #000000;
JSON
{
  "hex": "#797b4e",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 78
  },
  "hsl": {
    "h": 62.667,
    "s": 22.388,
    "l": 39.412
  },
  "oklch": {
    "l": 0.56976,
    "c": 0.06412,
    "h": 110.4
  },
  "luminance": 0.18781
}

Semantic roles & 50–950 ramp

primary
#797B4E
secondary
#8381A3
accent
#69BF6D
background
#F9F9F7
surface
#F2F2EE
border
#CCCCC9
text
#0F0E0A
muted
#7E7E7C

Preview Lab

Preview with #797B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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