#797D34#797D34

#797D34 is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.0% C 0.096 H 112.0°. Best body text is #000000 at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#797D34
RGBrgb(121, 125, 52)
HSLhsl(63, 41%, 35%)
HSVhsv(63, 58%, 49%)
CMYKcmyk(3.2%, 0%, 58.4%, 51%)
CIE-LABlab(50.66, -12.20, 38.51)
CIE-LCHlch(50.66, 40.39, 107.58°)
OKLaboklab(57.05% -0.036 0.0893)
OKLCHoklch(57.05% 0.096 112)
XYZxyz(15.8390, 18.9804, 6.0774)
Luminance0.1898 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D34 #38347D
analogous
#7D5D34 #797D34 #547D34
triadic
#797D34 #34797D #7D3479
tetradic
#797D34 #347D5D #38347D #7D3454
square
#797D34 #347D5D #38347D #7D3454
split-complementary
#797D34 #34547D #5D347D
monochromatic
#252710 #4F5222 #797D34 #A3A846 #BCC16A

Accessibility & contrast

On white

4.38
#797D34 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.80
#797D34 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797D34
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797D34#FFFFFF#000000##000000
##797D341.004.384.804.80
#FFFFFF4.381.0021.0021.00
#0000004.8021.001.001.00
##0000004.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#86782C
Deuteranopia (green-blind)
#867A38
Tritanopia (blue-blind)
#81766D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797d34;
/* rgb */ color: rgb(121, 125, 52);
/* oklch */ color: oklch(57.0% 0.096 112.0);
Tailwind
colors: {
  custom: {
    50: '#a2a26e',
    500: '#797d34',
    950: '#000000',
  },
}
SCSS
$custom: #797d34;
$custom-light: #a2a26e;
$custom-dark: #000000;
JSON
{
  "hex": "#797d34",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 52
  },
  "hsl": {
    "h": 63.288,
    "s": 41.243,
    "l": 34.706
  },
  "oklch": {
    "l": 0.57047,
    "c": 0.0963,
    "h": 112
  },
  "luminance": 0.1898
}

Semantic roles & 50–950 ramp

primary
#797D34
secondary
#6764A9
accent
#57D15D
background
#FAF9F6
surface
#F4F2EC
border
#CECCC7
text
#0F0F07
muted
#7F7E7A

Preview Lab

Preview with #797D34

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

Preview Lab → · Contrast checker → · Palette generator →

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