#797D2E#797D2E

#797D2E is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.0% C 0.102 H 111.9°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#797D2E
RGBrgb(121, 125, 46)
HSLhsl(63, 46%, 34%)
HSVhsv(63, 63%, 49%)
CMYKcmyk(3.2%, 0%, 63.2%, 51%)
CIE-LABlab(50.60, -12.68, 41.31)
CIE-LCHlch(50.60, 43.21, 107.06°)
OKLaboklab(56.98% -0.0381 0.0945)
OKLCHoklch(56.98% 0.102 111.9)
XYZxyz(15.7123, 18.9298, 5.4104)
Luminance0.1893 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D2E #322E7D
analogous
#7D592E #797D2E #517D2E
triadic
#797D2E #2E797D #7D2E79
tetradic
#797D2E #2E7D59 #322E7D #7D2E51
square
#797D2E #2E7D59 #322E7D #7D2E51
split-complementary
#797D2E #2E517D #592E7D
monochromatic
#22240D #4E501E #797D2E #A4AA3E #C0C561

Accessibility & contrast

On white

4.39
#797D2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#797D2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797D2E
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797D2E#FFFFFF#000000##000000
##797D2E1.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#867725
Deuteranopia (green-blind)
#877933
Tritanopia (blue-blind)
#81766C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797d2e;
/* rgb */ color: rgb(121, 125, 46);
/* oklch */ color: oklch(57.0% 0.102 111.9);
Tailwind
colors: {
  custom: {
    50: '#a2a26b',
    500: '#797d2e',
    950: '#000000',
  },
}
SCSS
$custom: #797d2e;
$custom-light: #a2a26b;
$custom-dark: #000000;
JSON
{
  "hex": "#797d2e",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 46
  },
  "hsl": {
    "h": 63.038,
    "s": 46.199,
    "l": 33.529
  },
  "oklch": {
    "l": 0.5698,
    "c": 0.10183,
    "h": 111.9
  },
  "luminance": 0.18929
}

Semantic roles & 50–950 ramp

primary
#797D2E
secondary
#5F5BAB
accent
#52D659
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F07
muted
#7F7E7A

Preview Lab

Preview with #797D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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