#797C2F#797C2F

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

Color values

HEX#797C2F
RGBrgb(121, 124, 47)
HSLhsl(62, 45%, 34%)
HSVhsv(62, 62%, 49%)
CMYKcmyk(2.4%, 0%, 62.1%, 51.4%)
CIE-LABlab(50.32, -12.06, 40.53)
CIE-LCHlch(50.32, 42.28, 106.57°)
OKLaboklab(56.75% -0.0362 0.093)
OKLCHoklch(56.75% 0.1 111.3)
XYZxyz(15.6063, 18.6858, 5.4734)
Luminance0.1868 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C2F #322F7C
analogous
#7C582F #797C2F #527C2F
triadic
#797C2F #2F797C #7C2F79
tetradic
#797C2F #2F7C58 #322F7C #7C2F52
square
#797C2F #2F7C58 #322F7C #7C2F52
split-complementary
#797C2F #2F527C #582F7C
monochromatic
#22230D #4E501E #797C2F #A4A840 #C0C362

Accessibility & contrast

On white

4.43
#797C2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#797C2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797C2F
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797C2F#FFFFFF#000000##000000
##797C2F1.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#857726
Deuteranopia (green-blind)
#867934
Tritanopia (blue-blind)
#81756C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797c2f;
/* rgb */ color: rgb(121, 124, 47);
/* oklch */ color: oklch(56.8% 0.100 111.3);
Tailwind
colors: {
  custom: {
    50: '#a2a16b',
    500: '#797c2f',
    950: '#000000',
  },
}
SCSS
$custom: #797c2f;
$custom-light: #a2a16b;
$custom-dark: #000000;
JSON
{
  "hex": "#797c2f",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 47
  },
  "hsl": {
    "h": 62.338,
    "s": 45.029,
    "l": 33.529
  },
  "oklch": {
    "l": 0.56754,
    "c": 0.09975,
    "h": 111.3
  },
  "luminance": 0.18685
}

Semantic roles & 50–950 ramp

primary
#797C2F
secondary
#5F5CAA
accent
#53D558
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F07
muted
#7F7E7A

Preview Lab

Preview with #797C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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