#797D2D#797D2D

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

Color values

HEX#797D2D
RGBrgb(121, 125, 45)
HSLhsl(63, 47%, 33%)
HSVhsv(63, 64%, 49%)
CMYKcmyk(3.2%, 0%, 64%, 51%)
CIE-LABlab(50.60, -12.75, 41.76)
CIE-LCHlch(50.60, 43.66, 106.98°)
OKLaboklab(56.97% -0.0384 0.0953)
OKLCHoklch(56.97% 0.103 111.9)
XYZxyz(15.6929, 18.9220, 5.3078)
Luminance0.1892 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D2D #312D7D
analogous
#7D592D #797D2D #517D2D
triadic
#797D2D #2D797D #7D2D79
tetradic
#797D2D #2D7D59 #312D7D #7D2D51
square
#797D2D #2D7D59 #312D7D #7D2D51
split-complementary
#797D2D #2D517D #592D7D
monochromatic
#22230D #4D501D #797D2D #A5AA3D #C0C55F

Accessibility & contrast

On white

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

On black

4.78
#797D2D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797D2D
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797D2D#FFFFFF#000000##000000
##797D2D1.004.394.784.78
#FFFFFF4.391.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #797d2d;
/* rgb */ color: rgb(121, 125, 45);
/* oklch */ color: oklch(57.0% 0.103 111.9);
Tailwind
colors: {
  custom: {
    50: '#a2a26a',
    500: '#797d2d',
    950: '#000000',
  },
}
SCSS
$custom: #797d2d;
$custom-light: #a2a26a;
$custom-dark: #000000;
JSON
{
  "hex": "#797d2d",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 45
  },
  "hsl": {
    "h": 63,
    "s": 47.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.5697,
    "c": 0.1027,
    "h": 111.9
  },
  "luminance": 0.18922
}

Semantic roles & 50–950 ramp

primary
#797D2D
secondary
#5E5AAC
accent
#51D758
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F07
muted
#7F7E7A

Preview Lab

Preview with #797D2D

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

Preview Lab → · Contrast checker → · Palette generator →

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