#797E2E#797E2E

#797E2E is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.2% C 0.103 H 112.6°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#797E2E
RGBrgb(121, 126, 46)
HSLhsl(64, 47%, 34%)
HSVhsv(64, 63%, 49%)
CMYKcmyk(4%, 0%, 63.5%, 50.6%)
CIE-LABlab(50.90, -13.22, 41.63)
CIE-LCHlch(50.90, 43.68, 107.62°)
OKLaboklab(57.22% -0.0396 0.0951)
OKLCHoklch(57.22% 0.103 112.6)
XYZxyz(15.8396, 19.1842, 5.4528)
Luminance0.1918 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E2E #332E7E
analogous
#7E5B2E #797E2E #517E2E
triadic
#797E2E #2E797E #7E2E79
tetradic
#797E2E #2E7E5B #332E7E #7E2E51
square
#797E2E #2E7E5B #332E7E #7E2E51
split-complementary
#797E2E #2E517E #5B2E7E
monochromatic
#23240D #4E511E #797E2E #A4AB3E #BFC561

Accessibility & contrast

On white

4.34
#797E2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#797E2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E2E
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E2E#FFFFFF#000000##000000
##797E2E1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#877824
Deuteranopia (green-blind)
#877A33
Tritanopia (blue-blind)
#81776D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797e2e;
/* rgb */ color: rgb(121, 126, 46);
/* oklch */ color: oklch(57.2% 0.103 112.6);
Tailwind
colors: {
  custom: {
    50: '#a2a36b',
    500: '#797e2e',
    950: '#000000',
  },
}
SCSS
$custom: #797e2e;
$custom-light: #a2a36b;
$custom-dark: #000000;
JSON
{
  "hex": "#797e2e",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 46
  },
  "hsl": {
    "h": 63.75,
    "s": 46.512,
    "l": 33.725
  },
  "oklch": {
    "l": 0.57218,
    "c": 0.10304,
    "h": 112.6
  },
  "luminance": 0.19184
}

Semantic roles & 50–950 ramp

primary
#797E2E
secondary
#615CAC
accent
#52D65A
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #797E2E

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

Preview Lab → · Contrast checker → · Palette generator →

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