#797F2F#797F2F

#797F2F is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.5% C 0.103 H 113.2°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#797F2F
RGBrgb(121, 127, 47)
HSLhsl(65, 46%, 34%)
HSVhsv(65, 63%, 50%)
CMYKcmyk(4.7%, 0%, 63%, 50.2%)
CIE-LABlab(51.21, -13.68, 41.50)
CIE-LCHlch(51.21, 43.70, 108.25°)
OKLaboklab(57.47% -0.0408 0.095)
OKLCHoklch(57.47% 0.103 113.2)
XYZxyz(15.9880, 19.4492, 5.6006)
Luminance0.1945 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F2F #352F7F
analogous
#7F5D2F #797F2F #517F2F
triadic
#797F2F #2F797F #7F2F79
tetradic
#797F2F #2F7F5D #352F7F #7F2F51
square
#797F2F #2F7F5D #352F7F #7F2F51
split-complementary
#797F2F #2F517F #5D2F7F
monochromatic
#24260E #4E521E #797F2F #A4AC40 #BEC563

Accessibility & contrast

On white

4.29
#797F2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#797F2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797F2F
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797F2F#FFFFFF#000000##000000
##797F2F1.004.294.894.89
#FFFFFF4.291.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#887926
Deuteranopia (green-blind)
#887B34
Tritanopia (blue-blind)
#81786E
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797f2f;
/* rgb */ color: rgb(121, 127, 47);
/* oklch */ color: oklch(57.5% 0.103 113.2);
Tailwind
colors: {
  custom: {
    50: '#a2a46b',
    500: '#797f2f',
    950: '#000000',
  },
}
SCSS
$custom: #797f2f;
$custom-light: #a2a46b;
$custom-dark: #000000;
JSON
{
  "hex": "#797f2f",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 47
  },
  "hsl": {
    "h": 64.5,
    "s": 45.977,
    "l": 34.118
  },
  "oklch": {
    "l": 0.57466,
    "c": 0.10338,
    "h": 113.2
  },
  "luminance": 0.19449
}

Semantic roles & 50–950 ramp

primary
#797F2F
secondary
#635EAC
accent
#52D65C
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #797F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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