#797B46#797B46

#797B46 is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.8% C 0.074 H 110.4°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#797B46
RGBrgb(121, 123, 70)
HSLhsl(62, 27%, 38%)
HSVhsv(62, 43%, 48%)
CMYKcmyk(1.6%, 0%, 43.1%, 51.8%)
CIE-LABlab(50.30, -9.29, 28.67)
CIE-LCHlch(50.30, 30.14, 107.95°)
OKLaboklab(56.83% -0.0258 0.0694)
OKLCHoklch(56.83% 0.074 110.4)
XYZxyz(16.0738, 18.6734, 8.5507)
Luminance0.1867 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B46 #48467B
analogous
#7B6246 #797B46 #5E7B46
triadic
#797B46 #46797B #7B4679
tetradic
#797B46 #467B62 #48467B #7B465E
square
#797B46 #467B62 #48467B #7B465E
split-complementary
#797B46 #465E7B #62467B
monochromatic
#2C2D1A #535430 #797B46 #9FA25C #B6B883

Accessibility & contrast

On white

4.44
#797B46 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#797B46 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B46
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B46#FFFFFF#000000##000000
##797B461.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#827742
Deuteranopia (green-blind)
#837948
Tritanopia (blue-blind)
#7F756E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797b46;
/* rgb */ color: rgb(121, 123, 70);
/* oklch */ color: oklch(56.8% 0.074 110.4);
Tailwind
colors: {
  custom: {
    50: '#a1a17a',
    500: '#797b46',
    950: '#000000',
  },
}
SCSS
$custom: #797b46;
$custom-light: #a1a17a;
$custom-dark: #000000;
JSON
{
  "hex": "#797b46",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 70
  },
  "hsl": {
    "h": 62.264,
    "s": 27.461,
    "l": 37.843
  },
  "oklch": {
    "l": 0.56833,
    "c": 0.07408,
    "h": 110.4
  },
  "luminance": 0.18673
}

Semantic roles & 50–950 ramp

primary
#797B46
secondary
#7A79A4
accent
#64C468
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0E09
muted
#7F7E7B

Preview Lab

Preview with #797B46

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

Preview Lab → · Contrast checker → · Palette generator →

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